mail_html_test.module in Drupal 10
Same filename and directory in other branches
Helper module for the html mail and url conversion tests.
File
core/modules/system/tests/modules/mail_html_test/mail_html_test.moduleView source
<?php
/**
* @file
* Helper module for the html mail and url conversion tests.
*/
/**
* Implements hook_mail().
*/
function mail_html_test_mail($key, &$message, $params) {
switch ($key) {
case 'render_from_message_param':
$message['body'][] = \Drupal::service('renderer')
->renderPlain($params['message']);
break;
}
}
Functions
Name | Description |
---|---|
mail_html_test_mail | Implements hook_mail(). |