You are here

function monitoring_sensor_config in Monitoring 8

Returns monitoring sensor config.

Return value

\Drupal\monitoring\Entity\SensorConfig[] List of SensorConfig instances.

Throws

\Drupal\monitoring\Sensor\NonExistingSensorException In case a sensor name is provided, which does not exists.

See also

\Drupal\monitoring\Sensor\SensorManager

2 string references to 'monitoring_sensor_config'
monitoring.routing.yml in ./monitoring.routing.yml
monitoring.routing.yml
SensorManager::rebuildSensors in src/Sensor/SensorManager.php
Rebuild the sensor list.

File

./monitoring.module, line 37
Monitoring bootstrap file.

Code

function monitoring_sensor_config() {
  return monitoring_sensor_manager()
    ->getAllSensorConfig();
}