public function QueryFactory::getAggregate in CiviCRM Entity 8.3
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.
Return value
\Drupal\Core\Entity\Query\QueryAggregateInterface The query object that can query the given entity type.
Throws
\Drupal\Core\Entity\Query\QueryException
Overrides QueryFactoryInterface::getAggregate
File
- src/
Entity/ Query/ CiviCRM/ QueryFactory.php, line 58
Class
- QueryFactory
- Factory class creating entity query objects in CiviCRM.
Namespace
Drupal\civicrm_entity\Entity\Query\CiviCRMCode
public function getAggregate(EntityTypeInterface $entity_type, $conjunction) {
// @todo copy paste, evaluate if they do.
throw new QueryException("CiviCRM entity queries do not support aggregate queries.");
}