code: protected function buildParams(EncodingParametersInterface $parameters)
      {
          return array_filter([
              QueryParametersParserInterface::PARAM_FILTER =>
                  $parameters->getFilteringParameters(),
              QueryParametersParserInterface::PARAM_SORT =>
                  $this->buildSortParams((array) $parameters->getSortParameters())
          ]);
      }
docs: Build parameters that are to be included with pagination links.
  
  @param EncodingParametersInterface $parameters
  @return array