public function ImageMissingStyleSensorPlugin::getAggregateQuery in Monitoring 8
Builds simple aggregate query over one db table.
Return value
\Drupal\Core\Database\Query\Select The select query object.
Overrides DatabaseAggregatorSensorPlugin::getAggregateQuery
1 call to ImageMissingStyleSensorPlugin::getAggregateQuery()
- ImageMissingStyleSensorPlugin::verboseResultCounting in src/
Plugin/ monitoring/ SensorPlugin/ ImageMissingStyleSensorPlugin.php - Get the aggregated table verbose output.
File
- src/
Plugin/ monitoring/ SensorPlugin/ ImageMissingStyleSensorPlugin.php, line 44 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\ImageMissingStyleSensorPlugin.
Class
- ImageMissingStyleSensorPlugin
- Monitors image derivate creation errors from dblog.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
public function getAggregateQuery() {
// Extends the watchdog query.
$query = parent::getAggregateQuery();
$query
->addField('watchdog', 'variables');
$query
->groupBy('variables');
$query
->orderBy('records_count', 'DESC');
return $query;
}