function EntityStorageBase::getAggregateQuery
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getAggregateQuery()
- 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getAggregateQuery()
- 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::getAggregateQuery()
Gets an aggregated 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\QueryAggregateInterface The aggregated query object that can query the given entity type.
Overrides EntityStorageInterface::getAggregateQuery
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityStorageBase.php, line 632
Class
- EntityStorageBase
- A base entity storage class.
Namespace
Drupal\Core\EntityCode
public function getAggregateQuery($conjunction = 'AND') {
return \Drupal::service($this->getQueryServiceName())
->getAggregate($this->entityType, $conjunction);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.