You are here

public function ChannelBase::sendMessage in Courier 8

Same name and namespace in other branches
  1. 2.x src/ChannelBase.php \Drupal\courier\ChannelBase::sendMessage()

Sends this message.

Parameters

array $options: Miscellaneous options to pass to the sender.

Overrides ChannelInterface::sendMessage

2 methods override ChannelBase::sendMessage()
Email::sendMessage in src/Entity/Email.php
Sends this message.
TestMessage::sendMessage in tests/modules/courier_test_message/src/Entity/TestMessage.php
Sends this message.

File

src/ChannelBase.php, line 22
Contains \Drupal\courier\ChannelBase.

Class

ChannelBase
Defines an base class for channels.

Namespace

Drupal\courier

Code

public function sendMessage(array $options = []) {
  $this
    ->sendMessages([
    $this,
  ], $options);
}