You are here

public function QueryAggregate::conditionAggregateGroupFactory in MongoDB 8

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.

Overrides QueryAggregateInterface::conditionAggregateGroupFactory

File

src/Entity/QueryAggregate.php, line 61
Contains \Drupal\mongodb\Entity\QueryAggregate.

Class

QueryAggregate

Namespace

Drupal\mongodb\Entity

Code

public function conditionAggregateGroupFactory($conjunction = 'AND') {
  return new Condition('AND', $this);
}