You are here

public function SensorManager::getSensorInfo in Monitoring 7

Returns monitoring sensor info.

Return value

\Drupal\monitoring\Sensor\SensorInfo[] List of SensorInfo instances.

3 calls to SensorManager::getSensorInfo()
SensorManager::getEnabledSensorInfo in lib/Drupal/monitoring/Sensor/SensorManager.php
Returns monitoring sensor info for enabled sensors.
SensorManager::getSensorInfoByCategories in lib/Drupal/monitoring/Sensor/SensorManager.php
Gets sensor info grouped by categories.
SensorManager::getSensorInfoByName in lib/Drupal/monitoring/Sensor/SensorManager.php
Returns monitoring sensor info for a given sensor.

File

lib/Drupal/monitoring/Sensor/SensorManager.php, line 34
Contains \Drupal\monitoring\Sensor\SensorManager.

Class

SensorManager
Manages sensor definitions and settings.

Namespace

Drupal\monitoring\Sensor

Code

public function getSensorInfo() {
  if (empty($this->info)) {
    $this->info = $this
      ->loadSensorInfo();
  }
  return $this->info;
}