You are here

public function QueryFactory::get in MongoDB 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/QueryFactory.php, line 33
Contains Drupal\mongodb\Entity\ContentEntityStorage.

Class

QueryFactory

Namespace

Drupal\mongodb\Entity

Code

public function get(EntityTypeInterface $entity_type, $conjunction) {
  return new Query($this->mongo, $entity_type, $conjunction, $this->namespaces);
}