You are here

public function Filter::queryCondition in JSON:API 8.2

Same name and namespace in other branches
  1. 8 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

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;
}