You are here

public function MailEntity::getRecipient in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getRecipient()
  2. 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 190

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

public function getRecipient() {
  return $this
    ->getSubscriber()
    ->getMail();
}