public function TestSensorPlugin::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
File
- modules/
test/ src/ Plugin/ monitoring/ SensorPlugin/ TestSensorPlugin.php, line 70 - Contains \Drupal\monitoring_test\Plugin\monitoring\SensorPlugin\TestSensorPlugin.
Class
- TestSensorPlugin
- Test sensor to report status as provided by external arguments.
Namespace
Drupal\monitoring_test\Plugin\monitoring\SensorPluginCode
public function resultVerbose(SensorResultInterface $result) {
$output = [];
$output['test'] = array(
'#type' => 'item',
'#title' => t('Test'),
'#markup' => 'call debug',
);
return $output;
}