public function addListFilterParams(array $url)
    {
        foreach ($this->request->query as $key => $value) {
            if (substr($key, 0, 7) == 'Filter-' || in_array($key, ['page', 'sort', 'direction'])) {
                $url[$key] = $value;
            }
        }

        return $url;
    }
public function addListFilterParams(array $url)
    {
        foreach ($this->request->query as $key => $value) {
            if (substr($key, 0, 7) == 'Filter-' || in_array($key, ['page', 'sort', 'direction'])) {
                $url[$key] = $value;
            }
        }

        return $url;
    }
public function addListFilterParams ( array $ url ) { foreach ( $ this -> request -> query as $ key => $ value ) { if ( substr ( $ key , 0 , 7 ) == 'Filter-' || in_array ( $ key , [ 'page' , 'sort' , 'direction' ] ) ) { $ url [ $ key ] = $ value ; } } return $ url ; }
Adds ListFilter-relevant named params to the given url. Used for detail links

@param array $url URL to link to
@return array
Adds ListFilter - relevant named params to the given url . Used for detail links