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()

Constructs a entity query for a certain entity type.

Parameters

string $entity_type: The entity type.

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.

Return value

\Drupal\field_sql_storage\Entity\Query The factored query.

File

drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/QueryFactory.php, line 43
Contains \Drupal\field_sql_storage\Entity\QueryFactory.

Class

QueryFactory
Factory class creating entity query objects for the SQL backend.

Namespace

Drupal\field_sql_storage\Entity

Code

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