You are here

public function TestHtmlMailCollector::format in Ubercart 8.4

Overrides PhpMail::format() to prevent it from stripping out the HTML.

Parameters

array $message: A message array, as described in hook_mail_alter().

Return value

string The formatted $message.

Overrides PhpMail::format

File

uc_store/src/Plugin/Mail/TestHtmlMailCollector.php, line 27

Class

TestHtmlMailCollector
Defines an HTML-capable mail backend that captures sent messages for tests.

Namespace

Drupal\uc_store\Plugin\Mail

Code

public function format(array $message) {
  $message['body'] = implode("\n\n", $message['body']);
  return $message;
}