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

getCurrentValue() private method

Returns values currently selected by the user.
private getCurrentValue ( ) : array
return array
    private function getCurrentValue()
    {
        $currentValue = $this->getFilter()->getCurrentValue();
        if (!is_array($currentValue)) {
            $currentValue = [];
        }
        if (!isset($currentValue['from']) || $currentValue['from'] === '') {
            $currentValue['from'] = $this->getMinValue();
        }
        if (!isset($currentValue['to']) || $currentValue['to'] === '') {
            $currentValue['to'] = $this->getMaxValue();
        }
        return $currentValue;
    }