You are here

public function SensorInfo::getLabel in Monitoring 7

Gets sensor label.

The sensor label might not be self-explaining enough or unique without the category, the category should always be present when the label is displayed.

Return value

string Sensor label.

1 call to SensorInfo::getLabel()
SensorInfo::toArray in lib/Drupal/monitoring/Sensor/SensorInfo.php
Compiles sensor info values to an associative array.

File

lib/Drupal/monitoring/Sensor/SensorInfo.php, line 67
Contains \Drupal\monitoring\Sensor\SensorInfo.

Class

SensorInfo
Represents a sensor info as defined in hook_monitoring_sensor_info().

Namespace

Drupal\monitoring\Sensor

Code

public function getLabel() {
  return $this->sensorInfo['label'];
}