You are here

public function MailEntity::setSubscriber in Simplenews 8

Set the active subscriber.

Parameters

\Drupal\simplenews\SubscriberInterface $subscriber: The active subscriber.

1 call to MailEntity::setSubscriber()
MailEntity::__construct in src/Mail/MailEntity.php
Constructs a MailEntity object.

File

src/Mail/MailEntity.php, line 100

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

public function setSubscriber(SubscriberInterface $subscriber) {
  $this->subscriber = $subscriber;
}