You are here

public static function Filter::createFromQueryParameter in JSON:API Search API 8

Creates a Sort object from a query parameter.

Parameters

mixed $parameter: The `filter` query parameter from the Symfony request object.

Return value

self A Sort object with defaults.

1 call to Filter::createFromQueryParameter()
IndexResource::applyFiltersToQuery in src/Resource/IndexResource.php
Apply filters to the index query.

File

src/Query/Filter.php, line 149

Class

Filter
Gathers information about the filter parameter.

Namespace

Drupal\jsonapi_search_api\Query

Code

public static function createFromQueryParameter($parameter) {
  $expanded = static::expand($parameter);
  return new static(static::buildEntityConditionGroup($expanded));
}