You are here

public function MailEntity::getSubscriber in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getSubscriber()
  2. 3.x src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getSubscriber()

Return the subscriber object.

Return value

\Drupal\simplenews\SubscriberInterface The subscriber object.

Overrides MailInterface::getSubscriber

2 calls to MailEntity::getSubscriber()
MailEntity::buildBody in src/Mail/MailEntity.php
Build the themed newsletter body.
MailEntity::getTokenContext in src/Mail/MailEntity.php
Returns the token context to be used with token replacements.

File

src/Mail/MailEntity.php, line 110

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

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