public function SensorInfo::getValueType in Monitoring 7
Gets sensor value type.
Return value
string|null Sensor value type.
See also
1 call to SensorInfo::getValueType()
- SensorInfo::getValueLabel in lib/
Drupal/ monitoring/ Sensor/ SensorInfo.php - Gets sensor value label.
File
- lib/
Drupal/ monitoring/ Sensor/ SensorInfo.php, line 142 - Contains \Drupal\monitoring\Sensor\SensorInfo.
Class
- SensorInfo
- Represents a sensor info as defined in hook_monitoring_sensor_info().
Namespace
Drupal\monitoring\SensorCode
public function getValueType() {
return isset($this->sensorInfo['value_type']) ? $this->sensorInfo['value_type'] : NULL;
}