class QueryFactory

Factory class Creating entity query objects.

Any implementation of this service must call getQuery()/getAggregateQuery() of the corresponding entity storage.

@todo https://www.drupal.org/node/2389335 remove entity.query service and replace with using the entity storage's getQuery() method.

Hierarchy

See also

\Drupal\Core\Entity\EntityStorageBase::getQuery()

File

core/lib/Drupal/Core/Entity/Query/QueryFactory.php, line 20

Namespace

Drupal\Core\Entity\Query

Members

Name Modifiers Type Description
ContainerAwareTrait::$container protected property
ContainerAwareTrait::setContainer public function Sets the container. Overrides ContainerAwareInterface::setContainer
QueryFactory::$entityManager protected property Stores the entity manager used by the query.
QueryFactory::get public function Returns a query object for a given entity type.
QueryFactory::getAggregate public function Returns an aggregated query object for a given entity type.
QueryFactory::__construct public function Constructs a QueryFactory object.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!QueryFactory.php/class/QueryFactory/8.1.x