function hook_message_ui_view_alter in Message UI 8
Alter the output of the message.
Parameters
array $build: The build element.
\Drupal\message\Entity\Message $message: The message object.
File
- ./
message_ui.api.php, line 23 - Defining the API part of the Message UI module.
Namespace
Drupal\message_uiCode
function hook_message_ui_view_alter(array &$build, Message $message) {
// Check the output of the message as you wish.
}