You are here

public function SensorResultInterface::setMessage in Monitoring 8

Same name and namespace in other branches
  1. 7 lib/Drupal/monitoring/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.

1 method overrides SensorResultInterface::setMessage()
SensorResult::setMessage in src/Result/SensorResult.php
Sets the final result message.

File

src/Result/SensorResultInterface.php, line 91
Contains \Drupal\monitoring\Result\SensorResultInterface.

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

public function setMessage($message, array $variables = array());