Problem/Motivation
\Drupal\symfony_mailer\Email::customize() does not return $this as it is supposed to do according to \Drupal\symfony_mailer\InternalEmailInterface.
Interface:
/**
* Customizes the email.
*
* Valid: before rendering.
*
* @param string $langcode
* The language code.
* @param \Drupal\Core\Session\AccountInterface $account
* The account.
*
* @return $this
*/
public function customize(string $langcode, AccountInterface $account);
Implementation:
/**
* {@inheritdoc}
*/
public function customize(string $langcode, AccountInterface $account) {
$this->valid(self::PHASE_BUILD);
$this->langcode = $langcode;
$this->account = $account;
$this->phase = self::PHASE_PRE_RENDER;
}
Steps to reproduce
N/A
Proposed resolution
Make \Drupal\symfony_mailer\Email::customize() return $this.
Remaining tasks
- Create MR
- Review MR
- Merge MR
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork symfony_mailer-3355373
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ricovandevin commentedComment #6
adamps commentedGreat thanks