Entity/EntityService.php
public function getFilters(Request $request, $overrideFilters = array(), $ignoreSession = false)
    {
        if ($ignoreSession) {
            return array_replace(
                $this->getFiltersFromRequest($request),
                $overrideFilters
            );
        }

        $filters = array_replace(
            $this->getFiltersFromSession($request->getSession()),
            $this->getFiltersFromRequest($request),
            $overrideFilters
        );

        $this->saveFilters($request->getSession(), $filters);
        return $filters;
    }
public function getFilters(Request $request, $overrideFilters = array(), $ignoreSession = false)
    {
        if ($ignoreSession) {
            return array_replace(
                $this->getFiltersFromRequest($request),
                $overrideFilters
            );
        }

        $filters = array_replace(
            $this->getFiltersFromSession($request->getSession()),
            $this->getFiltersFromRequest($request),
            $overrideFilters
        );

        $this->saveFilters($request->getSession(), $filters);
        return $filters;
    }
public function getFilters ( Request $ request , $ overrideFilters = array ( ) , $ ignoreSession = false ) { if ( $ ignoreSession ) { return array_replace ( $ this -> getFiltersFromRequest ( $ request ) , $ overrideFilters ) ; } $ filters = array_replace ( $ this -> getFiltersFromSession ( $ request -> getSession ( ) ) , $ this -> getFiltersFromRequest ( $ request ) , $ overrideFilters ) ; $ this -> saveFilters ( $ request -> getSession ( ) , $ filters ) ; return $ filters ; }
Returns the current filters for the entity, if any.

@param \Symfony\Component\HttpFoundation\Request $request
@param array $overrideFilters
@param bool $ignoreSession
@return array
Returns the current filters for the entity if any .