Skip to content
Snippets Groups Projects
Commit bf34699e authored by Ugnius Staniulis's avatar Ugnius Staniulis Committed by Adam Shepherd
Browse files

Issue #3317709 by ugas19: LegacyHelper emailToArray method doesn't save message changes

parent bd600228
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ class LegacyMailerHelper implements LegacyMailerHelperInterface {
/**
* {@inheritdoc}
*/
public function emailToArray(EmailInterface $email, array $message) {
public function emailToArray(EmailInterface $email, array &$message) {
$message['subject'] = $email->getSubject();
if ($email->getPhase() >= EmailInterface::PHASE_POST_RENDER) {
$message['body'] = $email->getHtmlBody();
......
......@@ -29,7 +29,7 @@ interface LegacyMailerHelperInterface {
* @param array $message
* The array to fill.
*/
public function emailToArray(EmailInterface $email, array $message);
public function emailToArray(EmailInterface $email, array &$message);
/**
* Fills an Email from a message array.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment