public function Query::conditionAggregateGroupFactory

public Query::conditionAggregateGroupFactory($conjunction = 'AND')

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

core/lib/Drupal/Core/Entity/Query/Null/Query.php, line 42

Class

Query
Defines the entity query for configuration entities.

Namespace

Drupal\Core\Entity\Query\Null

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Null!Query.php/function/Query::conditionAggregateGroupFactory/8.1.x