public function SensorResultInterface::setMessage in Monitoring 7
Same name and namespace in other branches
- 8 src/Result/SensorResultInterface.php \Drupal\monitoring\Result\SensorResultInterface::setMessage()
Sets the final result message.
If this is set, then the compilation will not extend the message in any way and the sensor completely responsible for making sure that all relevant information like the sensor value is part of the message.
Parameters
string $message: Message to be set.
array $variables: Dynamic values to be replaced for placeholders in the message.
See also
1 method overrides SensorResultInterface::setMessage()
- SensorResult::setMessage in lib/
Drupal/ monitoring/ Result/ SensorResult.php - Sets the final result message.
File
- lib/
Drupal/ monitoring/ Result/ SensorResultInterface.php, line 101 - Contains \Drupal\monitoring\Result\SensorResultInterface.
Class
- SensorResultInterface
- Interface for a sensor result.
Namespace
Drupal\monitoring\ResultCode
public function setMessage($message, array $variables = array());