public function QueryFactory::get

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Entity/Query/QueryFactory.php \Drupal\Core\Entity\Query\QueryFactory::get()
  2. 8.x drupal/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php \Drupal\Core\Config\Entity\Query\QueryFactory::get()
  3. 8.x drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/QueryFactory.php \Drupal\field_sql_storage\Entity\QueryFactory::get()

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);
}