You are here

public function Query::__construct in Apigee Edge 8

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.

array $namespaces: List of potential namespaces of the classes belonging to this query.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides QueryBase::__construct

File

src/Entity/Query/Query.php, line 70

Class

Query
Defines the entity query for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Query

Code

public function __construct(EntityTypeInterface $entity_type, string $conjunction, array $namespaces, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type, $conjunction, $namespaces);
  $this->entityTypeManager = $entity_type_manager;
}