You are here

public function SensorResultInterface::addStatusMessage in Monitoring 8

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

\Drupal\monitoring\Result\SensorResultInterface::setMessage()

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

File

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

Class

SensorResultInterface
Interface for a sensor result.

Namespace

Drupal\monitoring\Result

Code

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