You are here

protected static function Filter::buildEntityConditionGroup in JSON:API Search API 8

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 src/Query/Filter.php
Creates a Sort object from a query parameter.

File

src/Query/Filter.php, line 248

Class

Filter
Gathers information about the filter parameter.

Namespace

Drupal\jsonapi_search_api\Query

Code

protected static function buildEntityConditionGroup(array $items) {
  $root = [
    'id' => static::ROOT_ID,
    static::GROUP_KEY => [
      'conjunction' => 'AND',
    ],
  ];
  return static::buildTree($root, $items);
}