public function QueryFactory::get

Same name in this branch

Parameters

string $entity_type:

string $conjunction:

Return value

QueryInterface

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryFactory.php, line 35
Definition of Drupal\Core\Entity\Query\QueryFactory.

Class

QueryFactory
Factory class Creating entity query objects.

Namespace

Drupal\Core\Entity\Query

Code

public function get($entity_type, $conjunction = 'AND') {
  $service_name = entity_get_controller($entity_type)
    ->getQueryServicename();
  return $this->container
    ->get($service_name)
    ->get($entity_type, $conjunction);
}