You are here

public function MessageQueueItemInterface::addMessage in Courier 8

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

Add a message to the message queue item.

Parameters

\Drupal\courier\ChannelInterface $message: The message to add to the message queue item.

Return value

\Drupal\courier\MessageQueueItemInterface Returns this message queue item for chaining.

1 method overrides MessageQueueItemInterface::addMessage()
MessageQueueItem::addMessage in src/Entity/MessageQueueItem.php
Add a message to the message queue item.

File

src/MessageQueueItemInterface.php, line 68
Contains \Drupal\courier\MessageQueueItemInterface.

Class

MessageQueueItemInterface
Provides an interface defining a courier_message_queue_item entity.

Namespace

Drupal\courier

Code

public function addMessage(ChannelInterface $message);