public function ConditionInterface::conditionGroupFactory in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::conditionGroupFactory()
- 10 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\ConditionInterface::conditionGroupFactory()
Creates an object holding a group of conditions.
See andConditionGroup() and orConditionGroup() for more.
Parameters
$conjunction:
- AND (default): this is the equivalent of andConditionGroup().
- OR: this is the equivalent of orConditionGroup().
Return value
\Drupal\Core\Database\Query\ConditionInterface An object holding a group of conditions.
2 methods override ConditionInterface::conditionGroupFactory()
- Condition::conditionGroupFactory in core/
lib/ Drupal/ Core/ Database/ Query/ Condition.php - Creates an object holding a group of conditions.
- SelectExtender::conditionGroupFactory in core/
lib/ Drupal/ Core/ Database/ Query/ SelectExtender.php - Creates an object holding a group of conditions.
File
- core/
lib/ Drupal/ Core/ Database/ Query/ ConditionInterface.php, line 212
Class
- ConditionInterface
- Interface for a conditional clause in a query.
Namespace
Drupal\Core\Database\QueryCode
public function conditionGroupFactory($conjunction = 'AND');