Commit 1e8a4fcb authored by znerol's avatar znerol
Browse files

Issue #3325671 by znerol: Coding style fixes

parent 930a413b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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;
+3 −0
Original line number Diff line number Diff line
@@ -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 {

  /**
+2 −0
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@ type: module
description: Provides mail plugins for core compatibility.
package: Mail
core_version_requirement: ^9 || ^10
dependencies:
  - postoffice:postoffice
+3 −3
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
function postoffice_compat_theme() {
  $theme = [];

  // User plugin
  // User plugin.
  $theme['postoffice_compat_email_user'] = [
    'variables' => [
      'body' => '',
@@ -21,7 +21,7 @@ function postoffice_compat_theme() {
    ],
  ];

  // Contact plugin
  // Contact plugin.
  $theme['postoffice_compat_email_contact_autoreply'] = [
    'variables' => [
      'body' => '',
@@ -50,7 +50,7 @@ function postoffice_compat_theme() {
    ],
  ];

  // Fallback plugin
  // Fallback plugin.
  $theme['postoffice_compat_email_fallback'] = [
    'variables' => [
      'body' => '',
Loading