function Filter::queryCondition

Same name in other branches
  1. 9 core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::queryCondition()
  2. 8.9.x core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::queryCondition()
  3. 10 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.