You are here

public function MessageQueueItem::getMessages in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Entity/MessageQueueItem.php \Drupal\courier\Entity\MessageQueueItem::getMessages()

Get all messages associated with this message queue item.

The order of the messages is meaningful. The first successful message in the list will terminate the remaining messages.

Return value

\Drupal\courier\ChannelInterface[] An array of template entities.

Overrides MessageQueueItemInterface::getMessages

1 call to MessageQueueItem::getMessages()
MessageQueueItem::getMessage in src/Entity/MessageQueueItem.php
Get message with a channel entity type.

File

src/Entity/MessageQueueItem.php, line 58

Class

MessageQueueItem
Defines a Message queue item entity.

Namespace

Drupal\courier\Entity

Code

public function getMessages() {
  return $this->messages
    ->referencedEntities();
}