public function ConditionInterface::conditionGroupFactory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 andConditionGroup().
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 184 - Contains \Drupal\Core\Database\Query\ConditionInterface.
Class
- ConditionInterface
- Interface for a conditional clause in a query.
Namespace
Drupal\Core\Database\QueryCode
public function conditionGroupFactory($conjunction = 'AND');