public function SensorResult::setValue in Monitoring 8
Same name and namespace in other branches
- 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::setValue()
Sets sensor value.
Parameters
mixed $value:
Overrides SensorResultInterface::setValue
File
- src/
Result/ SensorResult.php, line 395
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setValue($sensor_value) {
$this
->setResultData('sensor_value', $sensor_value);
}