You are here

mail_html_test.module in Drupal 8

Helper module for the html mail and url conversion tests.

File

core/modules/system/tests/modules/mail_html_test/mail_html_test.module
View 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

Namesort descending Description
mail_html_test_mail Implements hook_mail().