Pull merge.
[yaffs-website] / web / core / modules / system / tests / modules / mail_html_test / mail_html_test.module
1 <?php
2
3 /**
4  * @file
5  * Helper module for the html mail and url conversion tests.
6  */
7
8 /**
9  * Implements hook_mail().
10  */
11 function mail_html_test_mail($key, &$message, $params) {
12   switch ($key) {
13     case 'render_from_message_param':
14       $message['body'][] = \Drupal::service('renderer')->renderPlain($params['message']);
15       break;
16   }
17 }