function mail_html_test_mail
Same name in other branches
- 8.9.x core/modules/system/tests/modules/mail_html_test/mail_html_test.module \mail_html_test_mail()
- 10 core/modules/system/tests/modules/mail_html_test/mail_html_test.module \mail_html_test_mail()
- 11.x core/modules/system/tests/modules/mail_html_test/mail_html_test.module \mail_html_test_mail()
Implements hook_mail().
File
-
core/
modules/ system/ tests/ modules/ mail_html_test/ mail_html_test.module, line 11
Code
function mail_html_test_mail($key, &$message, $params) {
switch ($key) {
case 'render_from_message_param':
$message['body'][] = \Drupal::service('renderer')->renderPlain($params['message']);
break;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.