Commit 1e958c0d authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Issue #3274819 by Rajab Natshah, AdamPS: Fix Notice: Undefined index: import...

Issue #3274819 by Rajab Natshah, AdamPS: Fix Notice: Undefined index: import in EmailBuilderManager->getImportInfo()
parent 97bcf3d9
Loading
Loading
Loading
Loading
+4 −3
Changes for modules/symfony_mailer_bc/symfony_mailer_bc.module: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
 */

use Drupal\Core\Form\FormStateInterface;
use Drupal\symfony_mailer\Annotation\EmailBuilder;

/**
 * Implements hook_theme().
@@ -32,14 +33,14 @@ function symfony_mailer_bc_mailer_builder_info_alter(array &$email_builders) {
  $missing = array_diff($mail_hooks, array_keys($email_builders));

  foreach ($missing as $type) {
    $email_builders[$type] = [
    $params = [
      'id' => $type,
      'label' => $module_handler->getName($type),
      'sub_types' => [],
      'has_entity' => FALSE,
      'class' => "Drupal\symfony_mailer_bc\Plugin\EmailBuilder\LegacyEmailBuilder",
      'provider' => $type,
    ];

    $email_builders[$type] = (new EmailBuilder($params))->get();
  }
}