public function SensorResult::getMessage in Monitoring 8
Same name and namespace in other branches
- 7 lib/Drupal/monitoring/Result/SensorResult.php \Drupal\monitoring\Result\SensorResult::getMessage()
Gets sensor status message.
Must not be called on an uncompiled result.
Return value
string Sensor status message.
Overrides SensorResultDataInterface::getMessage
1 call to SensorResult::getMessage()
- SensorResult::toArray in src/
Result/ SensorResult.php - Returns sensor result data as array.
File
- src/
Result/ SensorResult.php, line 155
Class
- SensorResult
- Generic container for the sensor result.
Namespace
Drupal\monitoring\ResultCode
public function getMessage() {
return $this
->getResultData('sensor_message');
}