You are here

public function DatabaseAggregatorSensorPlugin::resultVerbose in Monitoring 8

Provide additional info about sensor call.

This method is only executed on request. It is guaranteed that runSensor() is executed before this method.

Parameters

\Drupal\monitoring\Result\SensorResultInterface $result: Sensor result.

Return value

array Sensor call verbose info as render array.

Overrides ExtendedInfoSensorPluginInterface::resultVerbose

3 calls to DatabaseAggregatorSensorPlugin::resultVerbose()
ImageMissingStyleSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/ImageMissingStyleSensorPlugin.php
Provide additional info about sensor call.
NonExistingUserFailedLoginsSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/NonExistingUserFailedLoginsSensorPlugin.php
Provide additional info about sensor call.
UserFailedLoginsSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/UserFailedLoginsSensorPlugin.php
Provide additional info about sensor call.
3 methods override DatabaseAggregatorSensorPlugin::resultVerbose()
ImageMissingStyleSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/ImageMissingStyleSensorPlugin.php
Provide additional info about sensor call.
NonExistingUserFailedLoginsSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/NonExistingUserFailedLoginsSensorPlugin.php
Provide additional info about sensor call.
UserFailedLoginsSensorPlugin::resultVerbose in src/Plugin/monitoring/SensorPlugin/UserFailedLoginsSensorPlugin.php
Provide additional info about sensor call.

File

src/Plugin/monitoring/SensorPlugin/DatabaseAggregatorSensorPlugin.php, line 236
Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\DatabaseAggregatorSensorPlugin.

Class

DatabaseAggregatorSensorPlugin
Database aggregator able to query a single db table.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

public function resultVerbose(SensorResultInterface $result) {
  $output = [];
  if ($this->sensorConfig
    ->getSetting('verbose_fields')) {
    $this
      ->verboseResultUnaggregated($output);
  }
  if ($this->sensorConfig
    ->getSetting('history_status')) {
    $this
      ->verboseResultHistory($output);
  }
  return $output;
}