public QueryBase::__construct(EntityTypeInterface $entity_type, $conjunction, array $namespaces)
Constructs this object.
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
string $conjunction:
array $namespaces: List of potential namespaces of the classes belonging to this query.
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