Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / mail_html_test / mail_html_test.module
diff --git a/web/core/modules/system/tests/modules/mail_html_test/mail_html_test.module b/web/core/modules/system/tests/modules/mail_html_test/mail_html_test.module
new file mode 100644 (file)
index 0000000..f873c89
--- /dev/null
@@ -0,0 +1,17 @@
+<?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;
+  }
+}