function Filter::buildEntityConditionGroup
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::buildEntityConditionGroup()
- 10 core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::buildEntityConditionGroup()
- 11.x core/modules/jsonapi/src/Query/Filter.php \Drupal\jsonapi\Query\Filter::buildEntityConditionGroup()
Denormalizes the given filter items into a single EntityConditionGroup.
Parameters
array $items: The normalized entity conditions and groups.
Return value
\Drupal\jsonapi\Query\EntityConditionGroup A root group containing all the denormalized conditions and groups.
1 call to Filter::buildEntityConditionGroup()
- Filter::createFromQueryParameter in core/
modules/ jsonapi/ src/ Query/ Filter.php - Creates a Sort object from a query parameter.
File
-
core/
modules/ jsonapi/ src/ Query/ Filter.php, line 261
Class
- Filter
- Gathers information about the filter parameter.
Namespace
Drupal\jsonapi\QueryCode
protected static function buildEntityConditionGroup(array $items) {
$root = [
'id' => static::ROOT_ID,
static::GROUP_KEY => [
'conjunction' => 'AND',
],
];
return static::buildTree($root, $items);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.