You are here

public function TestMessenger::setMessage in Views XML Backend 8

Sets a message to display to the user.

Overrides MessengerInterface::setMessage

See also

drupal_set_message()

File

src/TestMessenger.php, line 25
Contains \Drupal\views_xml_backend\TestMessenger.

Class

TestMessenger
The messenger used for tests.

Namespace

Drupal\views_xml_backend

Code

public function setMessage($message = NULL, $type = 'status', $repeat = FALSE) {
  $this->messages[$type][] = (string) $message;
}