public EntityStorageBase::getQuery($conjunction = 'AND')
Gets an entity query instance.
string $conjunction: (optional) The logical operator for the query, either:
\Drupal\Core\Entity\Query\QueryInterface The query instance.
Overrides EntityStorageInterface::getQuery
\Drupal\Core\Entity\EntityStorageBase::getQueryServiceName()
public function getQuery($conjunction = 'AND') { // Access the service directly rather than entity.query factory so the // storage's current entity type is used. return \Drupal::service($this->getQueryServiceName())->get($this->entityType, $conjunction); }
© 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!EntityStorageBase.php/function/EntityStorageBase::getQuery/8.1.x