Services/TableApiService.php
private function parseFilters(TableInterface $table, Request $request)
    {
        $filters = [];

        $queryParams = $request->get($table->getFormId());

        foreach ($table->getAllFilters() as $filter) {
            if (isset($queryParams[$filter->getName()])) {
                $searchParamRaw = trim($queryParams[$filter->getName()]);
                if ($searchParamRaw != '') {
                    $filters[$filter->getName()] = $searchParamRaw;
                }
            }
        }

        return $filters;
    }
private function parseFilters(TableInterface $table, Request $request)
    {
        $filters = [];

        $queryParams = $request->get($table->getFormId());

        foreach ($table->getAllFilters() as $filter) {
            if (isset($queryParams[$filter->getName()])) {
                $searchParamRaw = trim($queryParams[$filter->getName()]);
                if ($searchParamRaw != '') {
                    $filters[$filter->getName()] = $searchParamRaw;
                }
            }
        }

        return $filters;
    }
private function parseFilters ( TableInterface $ table , Request $ request ) { $ filters = [ ] ; $ queryParams = $ request -> get ( $ table -> getFormId ( ) ) ; foreach ( $ table -> getAllFilters ( ) as $ filter ) { if ( isset ( $ queryParams [ $ filter -> getName ( ) ] ) ) { $ searchParamRaw = trim ( $ queryParams [ $ filter -> getName ( ) ] ) ; if ( $ searchParamRaw != '' ) { $ filters [ $ filter -> getName ( ) ] = $ searchParamRaw ; } } } return $ filters ; }
Parse filters.

@param TableInterface $table
@param Request        $request

@return array
Parse filters .