public function findFilterDataBySlug(Query $query, array $options)
    {
        if (!isset($options['request']) || get_class($options['request']) !== ServerRequest::class) {
            user_error('The request query option must exist and must be of type Cake\Http\ServerRequest.');
        }

        $encryptedFilterData = $this->_findEncryptedFilterData($query, $options['request'])->first();

        if ($encryptedFilterData) {
            $encryptedFilterData = $encryptedFilterData->toArray();
            return $this->_decodeFilterData($encryptedFilterData['filter_data']);
        }

        return [];
    }
public function findFilterDataBySlug(Query $query, array $options)
    {
        if (!isset($options['request']) || get_class($options['request']) !== ServerRequest::class) {
            user_error('The request query option must exist and must be of type Cake\Http\ServerRequest.');
        }

        $encryptedFilterData = $this->_findEncryptedFilterData($query, $options['request'])->first();

        if ($encryptedFilterData) {
            $encryptedFilterData = $encryptedFilterData->toArray();
            return $this->_decodeFilterData($encryptedFilterData['filter_data']);
        }

        return [];
    }
public function findFilterDataBySlug ( Query $ query , array $ options ) { if ( ! isset ( $ options [ 'request' ] ) || get_class ( $ options [ 'request' ] ) !== ServerRequest :: class ) { user_error ( 'The request query option must exist and must be of type Cake\Http\ServerRequest.' ) ; } $ encryptedFilterData = $ this -> _findEncryptedFilterData ( $ query , $ options [ 'request' ] ) -> first ( ) ; if ( $ encryptedFilterData ) { $ encryptedFilterData = $ encryptedFilterData -> toArray ( ) ; return $ this -> _decodeFilterData ( $ encryptedFilterData [ 'filter_data' ] ) ; } return [ ] ; }
Find stored filter data for a given slug.

@param Query $query
@param array $options
@return array
Find stored filter data for a given slug .