QueryFactory::getAggregate
public function QueryFactory::getAggregate
public QueryFactory::getAggregate(EntityTypeInterface $entity_type, $conjunction)
Instantiates an aggregation query object for a given entity type.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
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.