public function MessageQueueManagerInterface::sendMessage in Courier 8
Same name and namespace in other branches
- 2.x src/Service/MessageQueueManagerInterface.php \Drupal\courier\Service\MessageQueueManagerInterface::sendMessage()
Attempts to send the messages in the message queue item.
Attempts will halt as soon as a message is sent successfully, then the message queue item will be deleted.
Parameters
\Drupal\courier\MessageQueueItemInterface $mqi: A message queue item.
Return value
\Drupal\courier\ChannelInterface|FALSE The message that was sent, or FALSE if all messages failed to send.
1 method overrides MessageQueueManagerInterface::sendMessage()
- MessageQueueManager::sendMessage in src/
Service/ MessageQueueManager.php - Attempts to send the messages in the message queue item.
File
- src/
Service/ MessageQueueManagerInterface.php, line 27
Class
- MessageQueueManagerInterface
- Interface for message queue manager.
Namespace
Drupal\courier\ServiceCode
public function sendMessage(MessageQueueItemInterface $mqi);