protected checkFiltering ( |
||
$errors | ||
$parameters | Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface |
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.'));
}