You are here

public function ConditionGroup::getConditions in Search API 8

Retrieves all conditions and nested condition groups of this object.

Return value

\Drupal\search_api\Query\ConditionInterface[]|\Drupal\search_api\Query\ConditionGroupInterface[] An array containing this object's conditions. Each of these is either a simple condition, represented as an object of type \Drupal\search_api\Query\ConditionInterface, or a nested condition group, represented by a \Drupal\search_api\Query\ConditionGroupInterface object. Returned by reference so it's possible, for example, to remove conditions.

Overrides ConditionGroupInterface::getConditions

File

src/Query/ConditionGroup.php, line 76

Class

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

Namespace

Drupal\search_api\Query

Code

public function &getConditions() {
  return $this->conditions;
}