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