You are here

public function Filter::queryCondition in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::queryCondition()

Applies the root condition to the given query.

Parameters

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

Return value

\Drupal\Core\Entity\Query\ConditionInterface The compiled entity query condition.

File

core/modules/jsonapi/src/Query/Filter.php, line 86

Class

Filter
Gathers information about the filter parameter.

Namespace

Drupal\jsonapi\Query

Code

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