public function PhpNoticesSensorPlugin::verboseResultUnaggregated in Monitoring 8
Adds unaggregated verbose output to the render array $output.
Parameters
array &$output: Render array where the result will be added.
Overrides WatchdogAggregatorSensorPlugin::verboseResultUnaggregated
File
- src/
Plugin/ monitoring/ SensorPlugin/ PhpNoticesSensorPlugin.php, line 82 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\PhpNoticesSensorPlugin.
Class
- PhpNoticesSensorPlugin
- Displays the most frequent PHP notices and errors.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
public function verboseResultUnaggregated(array &$output) {
parent::verboseResultUnaggregated($output);
$rows = [];
foreach ($output['verbose_sensor_result']['#rows'] as $delta => $row) {
$variables = unserialize($row['variables']);
$variables['%file'] = $this
->shortenFilename($variables['%file']);
$rows[$delta]['count'] = $row['records_count'];
$rows[$delta]['type'] = $variables['%type'];
$rows[$delta]['message'] = $variables['@message'];
$rows[$delta]['caller'] = $variables['%function'];
$rows[$delta]['file'] = $variables['%file'] . ':' . $variables['%line'];
}
$output['verbose_sensor_result']['#rows'] = $rows;
$output['verbose_sensor_result']['#header'] = $this
->buildTableHeader($rows);
}