public function getFilters(Request $request): Request
    {
        // check for exist filters in request and get filters
        if (isset($request['filters'])) {
            $filters = json_decode($request['filters'], true);
        } else {
            $filters = [];
        }

        $request[$this->getRequestTagName('filter')] = $filters;

        return $request;
    }
public function getFilters(Request $request): Request
    {
        // check for exist filters in request and get filters
        if (isset($request['filters'])) {
            $filters = json_decode($request['filters'], true);
        } else {
            $filters = [];
        }

        $request[$this->getRequestTagName('filter')] = $filters;

        return $request;
    }
public function getFilters ( Request $ request ) : Request { // check for exist filters in request and get filters if ( isset ( $ request [ 'filters' ] ) ) { $ filters = json_decode ( $ request [ 'filters' ] , true ) ; } else { $ filters = [ ] ; } $ request [ $ this -> getRequestTagName ( 'filter' ) ] = $ filters ; return $ request ; }
get filter if exist

@param Request $request
@return Request
get filter if exist