You are here

public static function DataProviderInterface::processFilterInput in RESTful 7.2

Processes the input for a filter and adds the appropriate defaults.

Parameters

mixed $filter: The input value for the filter.

string $public_field: The public name for the filter.

Return value

array The processed filter item with all of the defaults.

Throws

\Drupal\restful\Exception\BadRequestException

3 methods override DataProviderInterface::processFilterInput()
CacheDecoratedDataProvider::processFilterInput in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Processes the input for a filter and adds the appropriate defaults.
DataProvider::processFilterInput in src/Plugin/resource/DataProvider/DataProvider.php
Processes the input for a filter and adds the appropriate defaults.
DataProviderDecorator::processFilterInput in src/Plugin/resource/DataProvider/DataProviderDecorator.php
Processes the input for a filter and adds the appropriate defaults.

File

src/Plugin/resource/DataProvider/DataProviderInterface.php, line 51
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface.

Class

DataProviderInterface

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public static function processFilterInput($filter, $public_field);