Commit 692bc218 authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Issue #3276029 by AdamPS: Improve email creation (correction 2)

parent 95ae7636
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Plugin/EmailAdjuster/ToEmailAdjuster.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ class ToEmailAdjuster extends AddressAdjusterBase {
  /**
   * {@inheritdoc}
   */
  public function initialize(EmailInterface $email) {
  public function init(EmailInterface $email) {
    // The to address can be used to default the recipient account. Ensure that
    // it is set early enough to do this.
    $email->addProcessor($this->getPluginId(), EmailInterface::PHASE_BUILD, [$this, 'postRender'], $this->getWeight(EmailInterface::PHASE_BUILD));