Loading examples/postoffice_form_example/postoffice_form_example.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ description: Send themed emails with Symfony Mailer - example module. package: Example modules core_version_requirement: ^9 || ^10 dependencies: - postoffice - postoffice:postoffice examples/postoffice_form_example/src/Email/TestEmail.php +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ use Drupal\postoffice\Email\TemplateAttachmentsTrait; use Drupal\postoffice\Email\ThemedEmailInterface; use Symfony\Component\Mime\Email as SymfonyEmail; /** * Example e-mail. */ class TestEmail extends SymfonyEmail implements ThemedEmailInterface, TemplateAttachmentsInterface { use StringTranslationTrait; Loading examples/postoffice_form_example/src/Form/TestEmailForm.php +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Mailer\Exception\ExceptionInterface as MailerExceptionInterface; use Symfony\Component\Mailer\MailerInterface; /** * Example e-mail form. */ class TestEmailForm extends FormBase implements FormInterface { /** Loading extensions/postoffice_compat/postoffice_compat.info.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,5 @@ type: module description: Provides mail plugins for core compatibility. package: Mail core_version_requirement: ^9 || ^10 dependencies: - postoffice:postoffice extensions/postoffice_compat/postoffice_compat.module +3 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ function postoffice_compat_theme() { $theme = []; // User plugin // User plugin. $theme['postoffice_compat_email_user'] = [ 'variables' => [ 'body' => '', Loading @@ -21,7 +21,7 @@ function postoffice_compat_theme() { ], ]; // Contact plugin // Contact plugin. $theme['postoffice_compat_email_contact_autoreply'] = [ 'variables' => [ 'body' => '', Loading Loading @@ -50,7 +50,7 @@ function postoffice_compat_theme() { ], ]; // Fallback plugin // Fallback plugin. $theme['postoffice_compat_email_fallback'] = [ 'variables' => [ 'body' => '', Loading Loading
examples/postoffice_form_example/postoffice_form_example.info.yml +1 −1 Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ description: Send themed emails with Symfony Mailer - example module. package: Example modules core_version_requirement: ^9 || ^10 dependencies: - postoffice - postoffice:postoffice
examples/postoffice_form_example/src/Email/TestEmail.php +3 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,9 @@ use Drupal\postoffice\Email\TemplateAttachmentsTrait; use Drupal\postoffice\Email\ThemedEmailInterface; use Symfony\Component\Mime\Email as SymfonyEmail; /** * Example e-mail. */ class TestEmail extends SymfonyEmail implements ThemedEmailInterface, TemplateAttachmentsInterface { use StringTranslationTrait; Loading
examples/postoffice_form_example/src/Form/TestEmailForm.php +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,9 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\Mailer\Exception\ExceptionInterface as MailerExceptionInterface; use Symfony\Component\Mailer\MailerInterface; /** * Example e-mail form. */ class TestEmailForm extends FormBase implements FormInterface { /** Loading
extensions/postoffice_compat/postoffice_compat.info.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,3 +3,5 @@ type: module description: Provides mail plugins for core compatibility. package: Mail core_version_requirement: ^9 || ^10 dependencies: - postoffice:postoffice
extensions/postoffice_compat/postoffice_compat.module +3 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ function postoffice_compat_theme() { $theme = []; // User plugin // User plugin. $theme['postoffice_compat_email_user'] = [ 'variables' => [ 'body' => '', Loading @@ -21,7 +21,7 @@ function postoffice_compat_theme() { ], ]; // Contact plugin // Contact plugin. $theme['postoffice_compat_email_contact_autoreply'] = [ 'variables' => [ 'body' => '', Loading Loading @@ -50,7 +50,7 @@ function postoffice_compat_theme() { ], ]; // Fallback plugin // Fallback plugin. $theme['postoffice_compat_email_fallback'] = [ 'variables' => [ 'body' => '', Loading