You are here

public function Query::addConditionGroup in Search API 8

Adds a nested condition group.

Parameters

\Drupal\search_api\Query\ConditionGroupInterface $condition_group: A condition group that should be added.

Return value

$this

Overrides ConditionSetInterface::addConditionGroup

File

src/Query/Query.php, line 446

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function addConditionGroup(ConditionGroupInterface $condition_group) {
  $this->conditionGroup
    ->addConditionGroup($condition_group);
  return $this;
}