public function QueryFactory::getAggregate

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Entity/Query/QueryFactory.php \Drupal\Core\Entity\Query\QueryFactory::getAggregate()
  2. 8.x drupal/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php \Drupal\Core\Config\Entity\Query\QueryFactory::getAggregate()
  3. 8.x drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/QueryFactory.php \Drupal\field_sql_storage\Entity\QueryFactory::getAggregate()

Returns a aggregation query object for a given entity type.

Parameters

string $entity_type: The entity type.

string $conjunction:

  • AND: all of the conditions on the query need to match.
  • OR: at least one of the conditions on the query need to match.

\Drupal\Core\Entity\EntityManager $entity_manager: The entity manager.

Return value

\Drupal\Core\Entity\Query\QueryAggregateInterface The query object that can query the given entity type.

Throws

\Drupal\Core\Entity\Query\QueryException

File

drupal/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 71
Contains \Drupal\Core\Config\Entity\Query\QueryFactory.

Class

QueryFactory
Provides a factory for creating entity query objects for the config backend.

Namespace

Drupal\Core\Config\Entity\Query

Code

public function getAggregate($entity_type, $conjunction, EntityManager $entity_manager) {
  throw new QueryException('Aggregation over configuration entities is not supported');
}