3 namespace Drupal\Core\Entity\Query\Null;
5 use Drupal\Core\Entity\EntityTypeInterface;
6 use Drupal\Core\Entity\Query\QueryBase;
7 use Drupal\Core\Entity\Query\QueryFactoryInterface;
10 * Provides a factory for creating entity query objects for the null backend.
12 class QueryFactory implements QueryFactoryInterface {
15 * The namespace of this class, the parent class etc.
19 protected $namespaces;
22 * Constructs a QueryFactory object.
24 public function __construct() {
25 $this->namespaces = QueryBase::getNamespaces($this);
31 public function get(EntityTypeInterface $entity_type, $conjunction) {
32 return new Query($entity_type, $conjunction, $this->namespaces);
38 public function getAggregate(EntityTypeInterface $entity_type, $conjunction) {
39 return new Query($entity_type, $conjunction, $this->namespaces);