You are here

public function QueryAggregateInterface::conditionAggregateGroupFactory in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php \Drupal\Core\Entity\Query\QueryAggregateInterface::conditionAggregateGroupFactory()
  2. 10 core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php \Drupal\Core\Entity\Query\QueryAggregateInterface::conditionAggregateGroupFactory()

Creates an object holding a group of conditions.

See andConditionAggregateGroup() and orConditionAggregateGroup() for more.

Parameters

string $conjunction:

  • AND (default): this is the equivalent of andConditionAggregateGroup().
  • OR: this is the equivalent of andConditionAggregateGroup().

Return value

ConditionInterface An object holding a group of conditions.

2 methods override QueryAggregateInterface::conditionAggregateGroupFactory()
Query::conditionAggregateGroupFactory in core/lib/Drupal/Core/Entity/Query/Null/Query.php
Creates an object holding a group of conditions.
QueryAggregate::conditionAggregateGroupFactory in core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
Creates an object holding a group of conditions.

File

core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php, line 112

Class

QueryAggregateInterface
Defines an interface for aggregated entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function conditionAggregateGroupFactory($conjunction = 'AND');