You are here

public function Subscriber::setMail in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setMail()
  2. 3.x src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setMail()

Sets the subscribers email address.

Parameters

string $mail: The subscribers email address.

Overrides SubscriberInterface::setMail

1 call to Subscriber::setMail()
Subscriber::fillFromAccount in src/Entity/Subscriber.php
Fill values from a user account.

File

src/Entity/Subscriber.php, line 95

Class

Subscriber
Defines the simplenews subscriber entity.

Namespace

Drupal\simplenews\Entity

Code

public function setMail($mail) {
  $this
    ->set('mail', $mail);
}