You are here

public function UbercartMail::format in Ubercart 8.4

Concatenates the e-mail body for HTML mails.

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/UbercartMail.php, line 27

Class

UbercartMail
Modifies the Drupal mail system to send HTML emails.

Namespace

Drupal\uc_store\Plugin\Mail

Code

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