protected function checkPaging(ErrorCollection $errors, EncodingParametersInterface $parameters)
{
$withinAllowed = $this->keysWithinAllowed($parameters->getPaginationParameters(), $this->pagingParameters);
$withinAllowed === true ?: $errors->addQueryParameterError(QP::PARAM_PAGE, T::t('Page parameter should contain only allowed values.'));
}