public function MailEntity::getRecipient in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getRecipient()
- 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getRecipient()
Returns the recipient of this newsletter mail.
Return value
string The recipient mail address(es) of this newsletter as a string.
Overrides MailInterface::getRecipient
File
- src/
Mail/ MailEntity.php, line 190
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
public function getRecipient() {
return $this
->getSubscriber()
->getMail();
}