You are here

public static function ChannelInterface::sendMessages in Courier 8

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

Sends messages in bulk.

Parameters

\Drupal\courier\ChannelInterface[] $messages: An array of messages.

array $options: Miscellaneous options.

Throws

\Drupal\courier\Exception\ChannelFailure Throw if the message cannot be sent.

1 call to ChannelInterface::sendMessages()
ChannelBase::sendMessage in src/ChannelBase.php
Sends this message.
2 methods override ChannelInterface::sendMessages()
Email::sendMessages in src/Entity/Email.php
TestMessage::sendMessages in tests/modules/courier_test_message/src/Entity/TestMessage.php
Sends messages in bulk.

File

src/ChannelInterface.php, line 36
Contains \Drupal\courier\ChannelInterface.

Class

ChannelInterface
Defines an interface for channels (templates).

Namespace

Drupal\courier

Code

public static function sendMessages(array $messages, $options = []);