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

  • class \Drupal\Core\Entity\Query\QueryFactory implements ContainerAwareInterface uses ContainerAwareTrait

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.
doc_Drupal
2016-10-29 09:35:48
Comments
Leave a Comment

Please login to continue.