Smile\ElasticsuiteCatalog\Block\Navigation\Renderer\Slider::getConfig PHP Method

getConfig() protected method

Retrieve configuration
protected getConfig ( ) : array
return array
    protected function getConfig()
    {
        $config = ['minValue' => $this->getMinValue(), 'maxValue' => $this->getMaxValue(), 'currentValue' => $this->getCurrentValue(), 'fieldFormat' => $this->getFieldFormat(), 'intervals' => $this->getIntervals(), 'urlTemplate' => $this->getUrlTemplate(), 'messageTemplates' => ['displayCount' => __('<%- count %> products'), 'displayEmpty' => __('No products in the selected range.')]];
        return $config;
    }

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  */
 protected function getConfig()
 {
     $config = parent::getConfig();
     if ($this->isManualCalculation() && $this->getStepValue() > 0) {
         $config['step'] = $this->getStepValue();
     }
     return $config;
 }