public function MessageQueueItem::getMessages in Courier 8
Same name and namespace in other branches
- 2.x 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\EntityCode
public function getMessages() {
return $this->messages
->referencedEntities();
}