You are here

public function EmailConfirmation::setEmail in Email confirmer 8

Sets the subscribers email address.

Parameters

string $email: The subscribers email address.

Return value

\Drupal\email_confirmer\EmailConfirmationInterface The called email confirmation entity.

Overrides EmailConfirmationInterface::setEmail

File

src/Entity/EmailConfirmation.php, line 327

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function setEmail($email) {
  $this
    ->get('email')
    ->setValue($email);
  return $this;
}