public function MessageNotifierTest::deliver in Message Notify 8
Deliver a message via the required transport method.
Parameters
array $output: Array keyed by the view mode, and the rendered entity in the specified view mode.
Return value
bool TRUE or FALSE based on delivery status.
Overrides MessageNotifierInterface::deliver
File
- tests/
modules/ message_notify_test/ src/ Plugin/ Notifier/ MessageNotifierTest.php, line 25
Class
- MessageNotifierTest
- Test notifier.
Namespace
Drupal\message_notify_test\Plugin\NotifierCode
public function deliver(array $output = []) {
$this->message->output = $output;
// Return TRUE or FALSE as it was set on the Message.
return empty($this->message->fail);
}