Loading modules/symfony_mailer_bc/src/Plugin/EmailBuilder/ContactEmailBuilder.php +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Drupal\symfony_mailer\EmailInterface; * "mail" = @Translation("Message"), * "copy" = @Translation("Sender copy"), * }, * proxy = TRUE, * ) * * @todo Notes for adopting Symfony Mailer into Drupal core. This builder can Loading Loading @@ -56,7 +57,7 @@ class ContactEmailBuilder extends ContactEmailBuilderBase { if (isset($message['params']['contact_form'])) { return $factory->newEntityEmail($message['params']['contact_form'], $key, $contact_message, $sender); } return $factory->newModuleEmail('contact', $key, $contact_message, $sender, $message['params']['recipient']); return $factory->newTypedEmail('contact', $key, $contact_message, $sender, $message['params']['recipient']); } /** Loading modules/symfony_mailer_bc/src/Plugin/EmailBuilder/ContactPageEmailBuilder.php +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "autoreply" = @Translation("Auto-reply"), * }, * has_entity = TRUE, * proxy = TRUE, * common_adjusters = {"email_subject", "email_body", "email_to"}, * import = @Translation("Contact form recipients"), * ) Loading modules/symfony_mailer_bc/src/Plugin/EmailBuilder/LegacyEmailBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ class LegacyEmailBuilder extends EmailBuilderBase implements ContainerFactoryPlu * {@inheritdoc} */ public function fromArray(EmailFactoryInterface $factory, array $message) { return $factory->newModuleEmail($message['module'], $message['key'], $message); return $factory->newTypedEmail($message['module'], $message['key'], $message); } /** Loading modules/symfony_mailer_bc/src/Plugin/EmailBuilder/SimplenewsEmailBuilder.php +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "subscribe" = @Translation("Subscription confirmation"), * "validate" = @Translation("Validate"), * }, * proxy = TRUE, * common_adjusters = {"email_subject", "email_body"}, * import = @Translation("Simplenews subscriber settings"), * import_warning = @Translation("This overrides the default HTML messages with imported plain text versions."), Loading Loading @@ -46,7 +47,7 @@ class SimplenewsEmailBuilder extends SimplenewsEmailBuilderBase { } $key = ($message['key'] == 'subscribe_combined') ? 'subscribe' : 'validate'; return $factory->newModuleEmail('simplenews', $key, $message['params']['context']['simplenews_subscriber']); return $factory->newTypedEmail('simplenews', $key, $message['params']['context']['simplenews_subscriber']); } /** Loading modules/symfony_mailer_bc/src/Plugin/EmailBuilder/SimplenewsNewsletterEmailBuilder.php +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "node" = @Translation("Issue"), * }, * has_entity = TRUE, * proxy = TRUE, * common_adjusters = {"email_subject", "email_from"}, * import = @Translation("Simplenews newsletter settings"), * ) Loading Loading
modules/symfony_mailer_bc/src/Plugin/EmailBuilder/ContactEmailBuilder.php +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Drupal\symfony_mailer\EmailInterface; * "mail" = @Translation("Message"), * "copy" = @Translation("Sender copy"), * }, * proxy = TRUE, * ) * * @todo Notes for adopting Symfony Mailer into Drupal core. This builder can Loading Loading @@ -56,7 +57,7 @@ class ContactEmailBuilder extends ContactEmailBuilderBase { if (isset($message['params']['contact_form'])) { return $factory->newEntityEmail($message['params']['contact_form'], $key, $contact_message, $sender); } return $factory->newModuleEmail('contact', $key, $contact_message, $sender, $message['params']['recipient']); return $factory->newTypedEmail('contact', $key, $contact_message, $sender, $message['params']['recipient']); } /** Loading
modules/symfony_mailer_bc/src/Plugin/EmailBuilder/ContactPageEmailBuilder.php +1 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "autoreply" = @Translation("Auto-reply"), * }, * has_entity = TRUE, * proxy = TRUE, * common_adjusters = {"email_subject", "email_body", "email_to"}, * import = @Translation("Contact form recipients"), * ) Loading
modules/symfony_mailer_bc/src/Plugin/EmailBuilder/LegacyEmailBuilder.php +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ class LegacyEmailBuilder extends EmailBuilderBase implements ContainerFactoryPlu * {@inheritdoc} */ public function fromArray(EmailFactoryInterface $factory, array $message) { return $factory->newModuleEmail($message['module'], $message['key'], $message); return $factory->newTypedEmail($message['module'], $message['key'], $message); } /** Loading
modules/symfony_mailer_bc/src/Plugin/EmailBuilder/SimplenewsEmailBuilder.php +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "subscribe" = @Translation("Subscription confirmation"), * "validate" = @Translation("Validate"), * }, * proxy = TRUE, * common_adjusters = {"email_subject", "email_body"}, * import = @Translation("Simplenews subscriber settings"), * import_warning = @Translation("This overrides the default HTML messages with imported plain text versions."), Loading Loading @@ -46,7 +47,7 @@ class SimplenewsEmailBuilder extends SimplenewsEmailBuilderBase { } $key = ($message['key'] == 'subscribe_combined') ? 'subscribe' : 'validate'; return $factory->newModuleEmail('simplenews', $key, $message['params']['context']['simplenews_subscriber']); return $factory->newTypedEmail('simplenews', $key, $message['params']['context']['simplenews_subscriber']); } /** Loading
modules/symfony_mailer_bc/src/Plugin/EmailBuilder/SimplenewsNewsletterEmailBuilder.php +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ use Drupal\symfony_mailer\Entity\MailerPolicy; * "node" = @Translation("Issue"), * }, * has_entity = TRUE, * proxy = TRUE, * common_adjusters = {"email_subject", "email_from"}, * import = @Translation("Simplenews newsletter settings"), * ) Loading