You are here

public function SensorResultInterface::addStatusMessage in Monitoring 7

Same name and namespace in other branches
  1. 8 src/Result/SensorResultInterface.php \Drupal\monitoring\Result\SensorResultInterface::addStatusMessage()

Adds sensor status message.

Multiple status messages can be added to a single result and will be added to the final status message.

Parameters

string $message: Message to be set.

array $variables: Dynamic values to be replaced for placeholders in the message.

See also

self::setMessage()

1 method overrides SensorResultInterface::addStatusMessage()
SensorResult::addStatusMessage in lib/Drupal/monitoring/Result/SensorResult.php
Adds sensor status message.

File

lib/Drupal/monitoring/Result/SensorResultInterface.php, line 116
Contains \Drupal\monitoring\Result\SensorResultInterface.

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

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