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;
    }
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;
    }
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 ; }
Returns values currently selected by the user.

@return array
Returns values currently selected by the user .