On this page
public function QueryBase::__construct
public QueryBase::__construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces)
Constructs this object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
string $conjunction:
- AND: all of the conditions on the query need to match.
- OR: at least one of the conditions on the query need to match.
array $namespaces: List of potential namespaces of the classes belonging to this query.
File
- core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 138
Class
- QueryBase
- The base entity query class.
Namespace
Drupal\Core\Entity\QueryCode
public function __construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces) {
$this->entityTypeId = $entity_type->id();
$this->entityType = $entity_type;
$this->conjunction = $conjunction;
$this->namespaces = $namespaces;
$this->condition = $this->conditionGroupFactory($conjunction);
if ($this instanceof QueryAggregateInterface) {
$this->conditionAggregate = $this->conditionAggregateGroupFactory($conjunction);
}
}
© 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!QueryBase.php/function/QueryBase::__construct/8.1.x