public function Query::__construct in Multiversion 8
Same name and namespace in other branches
- 8.2 src/Entity/Query/Sql/Query.php \Drupal\multiversion\Entity\Query\Sql\Query::__construct()
Constructs a query 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.
\Drupal\Core\Database\Connection $connection: The database connection to run the query against.
array $namespaces: List of potential namespaces of the classes belonging to this query.
Overrides Query::__construct
File
- src/
Entity/ Query/ Sql/ Query.php, line 30
Class
Namespace
Drupal\multiversion\Entity\Query\SqlCode
public function __construct(EntityTypeInterface $entity_type, $conjunction, Connection $connection, array $namespaces) {
parent::__construct($entity_type, $conjunction, $connection, $namespaces);
$this->entityTypeManager = \Drupal::service('entity_type.manager');
$this->multiversionManager = \Drupal::service('multiversion.manager');
}