public function QueueMailTestMailCollector::format in Queue Mail 8
Concatenates and wraps the email body for plain-text mails.
Parameters
array $message: A message array, as described in hook_mail_alter().
Return value
array The formatted $message.
Overrides PhpMail::format
File
- tests/
modules/ queue_mail_test/ src/ Plugin/ Mail/ QueueMailTestMailCollector.php, line 18
Class
- QueueMailTestMailCollector
- QueueMailTestMailCollector class.
Namespace
Drupal\queue_mail_test\Plugin\MailCode
public function format(array $message) {
$message = parent::format($message);
$message['current_langcode'] = \Drupal::languageManager()
->getCurrentLanguage()
->getId();
return $message;
}