function 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.