protected function checkFiltering(ErrorCollection $errors, EncodingParametersInterface $parameters)
{
$withinAllowed = $this->keysWithinAllowed($parameters->getFilteringParameters(), $this->filteringParameters);
$withinAllowed === true ?: $errors->addQueryParameterError(QP::PARAM_FILTER, T::t('Filter should contain only allowed values.'));
}