public function TestMessenger::setMessage in Views XML Backend 8
Sets a message to display to the user.
Overrides MessengerInterface::setMessage
See also
File
- src/
TestMessenger.php, line 25 - Contains \Drupal\views_xml_backend\TestMessenger.
Class
- TestMessenger
- The messenger used for tests.
Namespace
Drupal\views_xml_backendCode
public function setMessage($message = NULL, $type = 'status', $repeat = FALSE) {
$this->messages[$type][] = (string) $message;
}