QueryFactory.php in Drupal 10
File
core/lib/Drupal/Core/Entity/Query/Null/QueryFactory.php
View source
<?php
namespace Drupal\Core\Entity\Query\Null;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Query\QueryBase;
use Drupal\Core\Entity\Query\QueryFactoryInterface;
class QueryFactory implements QueryFactoryInterface {
protected $namespaces;
public function __construct() {
$this->namespaces = QueryBase::getNamespaces($this);
}
public function get(EntityTypeInterface $entity_type, $conjunction) {
return new Query($entity_type, $conjunction, $this->namespaces);
}
public function getAggregate(EntityTypeInterface $entity_type, $conjunction) {
return new Query($entity_type, $conjunction, $this->namespaces);
}
}
Classes
Name |
Description |
QueryFactory |
Provides a factory for creating entity query objects for the null backend. |