Commit 14ec3d43 authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Issue #3269614 by lamp5, AdamPS: Policy label is always empty for generic drupal mails

parent dfccf928
Loading
Loading
Loading
Loading
+8 −0
Changes for src/Entity/MailerPolicy.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -184,6 +184,14 @@ class MailerPolicy extends ConfigEntityBase implements EntityWithPluginCollectio
    return $this->entityId ? $this->labelUnknown : $this->labelAll;
  }

  /**
   * {@inheritdoc}
   */
  public function label() {
    $labels = [$this->getTypeLabel(), $this->getSubTypeLabel(), $this->getEntityLabel()];
    return implode(' » ', array_filter($labels));
  }

  /**
   * Sets the email adjuster configuration for this policy record.
   *