You are here

public function SensorInfo::getValueType in Monitoring 7

Gets sensor value type.

Return value

string|null Sensor value type.

See also

monitoring_value_types().

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\Sensor

Code

public function getValueType() {
  return isset($this->sensorInfo['value_type']) ? $this->sensorInfo['value_type'] : NULL;
}