function hook_monitoring_sensor_info_alter in Monitoring 7
Allows to alter sensor info before creation of SensorInfo instance.
Parameters
array $info: Sensor info to be altered.
See also
\Drupal\monitoring\Sensor\SensorManager::loadSensorInfo()
1 invocation of hook_monitoring_sensor_info_alter()
- SensorManager::loadSensorInfo in lib/
Drupal/ monitoring/ Sensor/ SensorManager.php - Loads sensor info from hooks.
File
- ./
monitoring.api.php, line 113 - Monitoring API documentation.
Code
function hook_monitoring_sensor_info_alter(&$info) {
}