You are here

public function QueryFactory::get in Apigee Edge 8

Instantiates an entity query for a given entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

string $conjunction: The operator to use to combine conditions: 'AND' or 'OR'.

Return value

\Drupal\Core\Entity\Query\QueryInterface An entity query for a specific configuration entity type.

Overrides QueryFactoryInterface::get

File

src/Entity/Query/QueryFactory.php, line 61

Class

QueryFactory
Factory for creating entity query objects for the Apigee Edge backend.

Namespace

Drupal\apigee_edge\Entity\Query

Code

public function get(EntityTypeInterface $entity_type, $conjunction) {

  /** @var \Drupal\apigee_edge\Entity\EdgeEntityTypeInterface $entity_type */
  $rc = new \ReflectionClass($entity_type
    ->getQueryClass());
  return $rc
    ->newInstance($entity_type, $conjunction, $this->namespaces, $this->entityTypeManager);
}