function MailEntity::getRecipient in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getRecipient()
- 3.x 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 209
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
function getRecipient() {
return $this
->getSubscriber()
->getMail();
}