Commit d189afe9 authored by Balis Matzouranis's avatar Balis Matzouranis Committed by Adam Shepherd
Browse files

Issue #3254102 by balis_m, AdamPS: Notice: Undefined index: label in...

Issue #3254102 by balis_m, AdamPS: Notice: Undefined index: label in Drupal\symfony_mailer\Form\PolicyAddForm->form()
parent dd876d4b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@ class EmailBuilderManager extends DefaultPluginManager {
      $definition['sub_type'] = array_shift($parts);
    }

    // Set a dummy provider that will cause the definition to be removed.
    // @see DefaultPluginManager::findDefinitions()
    $definition['provider'] = '_';
    if ($definition['has_entity']) {
      if ($entity_type = $this->entityTypeManager->getDefinition($type, FALSE)) {
        $definition['label'] = $entity_type->getLabel();