You are here

function hook_message_subscribe_message_alter in Message Subscribe 8

Alter the message entity immediately before it is sent.

Parameters

\Drupal\message\MessageInterface $message: The message entity to be sent. This already has the recipient set as the message owner.

\Drupal\message_subscribe\Subscribers\DeliveryCandidateInterface $delivery_candidate: A delivery candidate object.

1 function implements hook_message_subscribe_message_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

message_subscribe_test_message_subscribe_message_alter in tests/modules/message_subscribe_test/message_subscribe_test.module
Implements hook_message_subscribe_message_alter().
1 invocation of hook_message_subscribe_message_alter()
Subscribers::sendMessage in src/Subscribers.php
Process a message and send to subscribed users.

File

./message_subscribe.api.php, line 66
Hooks provided by the Message subscribe module.

Code

function hook_message_subscribe_message_alter(MessageInterface $message, DeliveryCandidateInterface $delivery_candidate) {
}