public function MailInterface::format

Formats a message composed by drupal_mail() prior sending.

Parameters

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

Return value

array The formatted $message.

2 methods override MailInterface::format()
MailTest::format in drupal/core/modules/system/lib/Drupal/system/Tests/Mail/MailTest.php
Concatenate and wrap the e-mail body for plain-text mails.
PhpMail::format in drupal/core/lib/Drupal/Core/Mail/PhpMail.php
Concatenates and wraps the e-mail body for plain-text mails.

File

drupal/core/lib/Drupal/Core/Mail/MailInterface.php, line 24
Definition of Drupal\Core\Mail\MailInterface.

Class

MailInterface
Defines an interface for pluggable mail back-ends.

Namespace

Drupal\Core\Mail

Code

public function format(array $message);