public function buildQueryInputs($currentField)
    {
        $request = $this->requestStack->getCurrentRequest();
        $fields = '';
        foreach ($request->query->all() as $field => $value) {
            // Exclude the current field and the PAGE parameter
            if($field !== $currentField && $field !== 'page'){
                $fields .= sprintf('<input type="hidden" name="%s" value="%s">', $field, $value);
            }
        }

        return $fields;
    }
public function buildQueryInputs($currentField)
    {
        $request = $this->requestStack->getCurrentRequest();
        $fields = '';
        foreach ($request->query->all() as $field => $value) {
            // Exclude the current field and the PAGE parameter
            if($field !== $currentField && $field !== 'page'){
                $fields .= sprintf('<input type="hidden" name="%s" value="%s">', $field, $value);
            }
        }

        return $fields;
    }
public function buildQueryInputs ( $ currentField ) { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; $ fields = '' ; foreach ( $ request -> query -> all ( ) as $ field => $ value ) { // Exclude the current field and the PAGE parameter if ( $ field !== $ currentField && $ field !== 'page' ) { $ fields .= sprintf ( '<input type="hidden" name="%s" value="%s">' , $ field , $ value ) ; } } return $ fields ; }
Build Hidden fields based on the URL parameters
@param $currentField
@return string
Build Hidden fields based on the URL parameters