QueryBase::conditionGroupFactory

protected QueryBase::conditionGroupFactory($conjunction = 'AND')

Creates an object holding a group of conditions.

See andConditionGroup() and orConditionGroup() for more.

Parameters

string $conjunction:

  • AND (default): this is the equivalent of andConditionGroup().
  • OR: this is the equivalent of orConditionGroup().

Return value

\Drupal\Core\Entity\Query\ConditionInterface An object holding a group of conditions.

File

core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 203

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

protected function conditionGroupFactory($conjunction = 'AND') {
  $class = static::getClass($this->namespaces, 'Condition');
  return new $class($conjunction, $this, $this->namespaces);
}
doc_Drupal
2016-10-29 09:35:40
Comments
Leave a Comment

Please login to continue.