public function QueryFactory::get

Same name in this branch

Instantiates an entity query for a given entity type.

Parameters

string $entity_type: The entity type for the query.

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

\Drupal\Core\Entity\EntityManager $entity_manager: The entity manager that handles the entity type.

Return value

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

File

drupal/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 51
Contains \Drupal\Core\Config\Entity\Query\QueryFactory.

Class

QueryFactory
Provides a factory for creating entity query objects for the config backend.

Namespace

Drupal\Core\Config\Entity\Query

Code

public function get($entity_type, $conjunction, EntityManager $entity_manager) {
  return new Query($entity_type, $conjunction, $entity_manager, $this->configStorage);
}