/** * @inheritdoc */ protected function getEncodingParameters() { if (!$this->service->hasRequest()) { return null; } return $this->service->getRequest()->getParameters(); }
/** * Build parameters that are to be included with pagination links. * * @return array */ protected function buildParams() { $parameters = $this->service->getRequest()->getParameters(); return array_filter([QueryParametersParserInterface::PARAM_FILTER => $parameters->getFilteringParameters(), QueryParametersParserInterface::PARAM_SORT => $this->buildSortParams((array) $parameters->getSortParameters())]); }
/** * @return array */ protected function getParams() { $encodingParameters = $this->service->getRequest()->getParameters(); return (array) $encodingParameters->getPaginationParameters(); }