You are here

public function EmailConfirmerManagerInterface::confirm in Email confirmer 8

Starts an email confirmation process.

Existing confirmation for the given email address will be used if it is in pending status, otherwise a new one will be created. Confirmation request email is sent by this method.

Parameters

string $email: Email address to be confirmed.

array $data: An optional property map to store with the confirmation.

string $realm: A realm to which this confirmation belongs. Tipically, a module name.

Return value

\Drupal\email_confirmer\EmailConfirmationInterface The email confirmation entity.

1 method overrides EmailConfirmerManagerInterface::confirm()
EmailConfirmerManager::confirm in src/EmailConfirmerManager.php
Starts an email confirmation process.

File

src/EmailConfirmerManagerInterface.php, line 27

Class

EmailConfirmerManagerInterface
Email confirmation service interface.

Namespace

Drupal\email_confirmer

Code

public function confirm($email, array $data = [], $realm = '');