protected function getFilters(Request $request)
    {
        $type = $this->getFilterType($request);

        if (!$type) {
            return $request->query->get('search')['value'];
        }

        $filter = new $type();

        $param = $filter->getBlockPrefix();

        return $request->query->get($param);
    }
protected function getFilters(Request $request)
    {
        $type = $this->getFilterType($request);

        if (!$type) {
            return $request->query->get('search')['value'];
        }

        $filter = new $type();

        $param = $filter->getBlockPrefix();

        return $request->query->get($param);
    }
protected function getFilters ( Request $ request ) { $ type = $ this -> getFilterType ( $ request ) ; if ( ! $ type ) { return $ request -> query -> get ( 'search' ) [ 'value' ] ; } $ filter = new $ type ( ) ; $ param = $ filter -> getBlockPrefix ( ) ; return $ request -> query -> get ( $ param ) ; }
Extracts the filters from the request's query parameters.

@param Request $request the current request
@return Array the query parameters containng the filters
Extracts the filters from the request s query parameters .