protected function ContentEntityAggregatorSensorPlugin::addAggregate in Monitoring 8
Add aggregation to the query.
Parameters
\Drupal\Core\Entity\Query\QueryAggregateInterface $query: The query.
1 call to ContentEntityAggregatorSensorPlugin::addAggregate()
- ContentEntityAggregatorSensorPlugin::getEntityQueryAggregate in src/
Plugin/ monitoring/ SensorPlugin/ ContentEntityAggregatorSensorPlugin.php - Builds the entity aggregate query.
File
- src/
Plugin/ monitoring/ SensorPlugin/ ContentEntityAggregatorSensorPlugin.php, line 621 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ContentEntityAggregatorSensorPlugin.
Class
- ContentEntityAggregatorSensorPlugin
- Content entity database aggregator.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
protected function addAggregate(QueryAggregateInterface $query) {
$query
->aggregate($this->aggregateField, 'COUNT');
}