public function Email::setEmailAddress in Courier 8
Same name and namespace in other branches
- 2.x src/Entity/Email.php \Drupal\courier\Entity\Email::setEmailAddress()
Sets email address.
Parameters
string $mail: The recipient email address.
Return value
\Drupal\courier\EmailInterface Returns email for chaining.
Overrides EmailInterface::setEmailAddress
File
- src/
Entity/ Email.php, line 56 - Contains \Drupal\courier\Entity\Email.
Class
- Defines storage for a composed email.
Namespace
Drupal\courier\EntityCode
public function setEmailAddress($mail) {
$this
->set('mail', [
'value' => $mail,
]);
return $this;
}