You are here

public function ConditionGroup::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/ConditionGroup.php, line 60

Class

ConditionGroup
Provides a standard implementation for a Search API query condition group.

Namespace

Drupal\search_api\Query

Code

public function addConditionGroup(ConditionGroupInterface $condition_group) {
  $this->conditions[] = $condition_group;
  return $this;
}