You are here

public function Filter::queryCondition in JSON:API Search API 8

Applies the root condition to the given query.

Parameters

\Drupal\search_api\Query\QueryInterface $query: The query for which the condition should be constructed.

Return value

\Drupal\search_api\Query\ConditionGroupInterface The compiled entity query condition.

File

src/Query/Filter.php, line 84

Class

Filter
Gathers information about the filter parameter.

Namespace

Drupal\jsonapi_search_api\Query

Code

public function queryCondition(QueryInterface $query) {
  $condition = $this
    ->buildGroup($query, $this
    ->root());
  return $condition;
}