public function Filter::queryCondition in JSON:API 8
Same name and namespace in other branches
- 8.2 src/Query/Filter.php \Drupal\jsonapi\Query\Filter::queryCondition()
Applies the root condition to the given query.
Parameters
\Drupal\Entity\Query\QueryInterface $query: The query for which the condition should be constructed.
Return value
\Drupal\Entity\Query\ConditionInterface The compiled entity query condition.
File
- src/
Query/ Filter.php, line 54
Class
- Filter
- Gathers information about the filter parameter.
Namespace
Drupal\jsonapi\QueryCode
public function queryCondition(QueryInterface $query) {
$condition = $this
->buildGroup($query, $this
->root());
return $condition;
}