public function QueryAggregate::conditionAggregateGroupFactory in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::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.
Overrides QueryAggregateInterface::conditionAggregateGroupFactory
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ QueryAggregate.php, line 49
Class
- QueryAggregate
- The SQL storage entity query aggregate class.
Namespace
Drupal\Core\Entity\Query\SqlCode
public function conditionAggregateGroupFactory($conjunction = 'AND') {
$class = static::getClass($this->namespaces, 'ConditionAggregate');
return new $class($conjunction, $this, $this->namespaces);
}