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