public function SensorConfigInterface::getValueLabel in Monitoring 8
Gets sensor value label.
In case the sensor defined a value_label, it will use it as label.
Next if the sensor defines a value_type, it will use the label provided for that type by monitoring_value_types().
If nothing is defined, it returns NULL.
Return value
string|null Sensor value label.
1 method overrides SensorConfigInterface::getValueLabel()
- SensorConfig::getValueLabel in src/
Entity/ SensorConfig.php - Gets sensor value label.
File
- src/
SensorConfigInterface.php, line 70 - Contains \Drupal\monitoring\SensorConfigInterface.
Class
Namespace
Drupal\monitoringCode
public function getValueLabel();