You are here

public function Subscription::setEmail in Mailing List 8

Set the email address of this subscription.

Parameters

string $email: The new email address.

Overrides SubscriptionInterface::setEmail

File

src/Entity/Subscription.php, line 189

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

public function setEmail($email) {
  $this
    ->set('email', $email);
  return $this;
}