protected function _extractParams($params, FilterCollectionInterface $filters)
    {
        $emptyValues = $this->_emptyValues();

        $nonEmptyParams = Hash::filter($params, function ($val) use ($emptyValues) {
            return !in_array($val, $emptyValues, true);
        });

        return array_intersect_key($nonEmptyParams, iterator_to_array($filters));
    }
protected function _extractParams($params, FilterCollectionInterface $filters)
    {
        $emptyValues = $this->_emptyValues();

        $nonEmptyParams = Hash::filter($params, function ($val) use ($emptyValues) {
            return !in_array($val, $emptyValues, true);
        });

        return array_intersect_key($nonEmptyParams, iterator_to_array($filters));
    }
protected function _extractParams ( $ params , FilterCollectionInterface $ filters ) { $ emptyValues = $ this -> _emptyValues ( ) ; $ nonEmptyParams = Hash :: filter ( $ params , function ( $ val ) use ( $ emptyValues ) { return ! in_array ( $ val , $ emptyValues , true ) ; } ) ; return array_intersect_key ( $ nonEmptyParams , iterator_to_array ( $ filters ) ) ; }
Extracts all parameters for which a filter with a matching field
name exists.

@param array $params The parameters array to extract from.
@param \Search\Model\Filter\FilterCollectionInterface $filters Filter collection.
@return array The extracted parameters.
Extracts all parameters for which a filter with a matching field name exists .