function EntityStorageBase::getQuery
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getQuery()
- 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getQuery()
- 11.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getQuery()
Gets an entity query instance.
Parameters
string $conjunction: (optional) The logical operator for the query, either:
- AND: all of the conditions on the query need to match.
- OR: at least one of the conditions on the query need to match.
Return value
\Drupal\Core\Entity\Query\QueryInterface The query instance.
Overrides EntityStorageInterface::getQuery
1 call to EntityStorageBase::getQuery()
- EntityStorageBase::loadByProperties in core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php - Load entities by their property values without any access checks.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 657
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
public function getQuery($conjunction = 'AND') {
return \Drupal::service($this->getQueryServiceName())
->get($this->entityType, $conjunction);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.