public function EmailConfirmerManager::getConfirmation in Email confirmer 8
Search for the recent confirmation for a given email address.
Parameters
string $email: The email address.
string $status: Filter by confirmation status.
string $realm: A realm to filter by.
Return value
\Drupal\email_confirmer\EmailConfirmationInterface The email confirmation entity. NULL if not found.
Overrides EmailConfirmerManagerInterface::getConfirmation
1 call to EmailConfirmerManager::getConfirmation()
- EmailConfirmerManager::confirm in src/
EmailConfirmerManager.php - Starts an email confirmation process.
File
- src/
EmailConfirmerManager.php, line 132
Class
- EmailConfirmerManager
- Email confirmation service.
Namespace
Drupal\email_confirmerCode
public function getConfirmation($email, $status = FALSE, $realm = '') {
$confirmation = NULL;
$confirmations = $this
->getConfirmations($email, $status, 1, $realm);
if (count($confirmations)) {
$confirmation = $confirmations[0];
}
return $confirmation;
}