public function EmailConfirmerManager::createConfirmation in Email confirmer 8
Creates a new email confirmation entity.
Parameters
string $email: The email address to confirm.
Return value
\Drupal\email_confirmer\EmailConfirmationInterface The new email confirmation entity.
Overrides EmailConfirmerManagerInterface::createConfirmation
1 call to EmailConfirmerManager::createConfirmation()
- EmailConfirmerManager::confirm in src/
EmailConfirmerManager.php - Starts an email confirmation process.
File
- src/
EmailConfirmerManager.php, line 144
Class
- EmailConfirmerManager
- Email confirmation service.
Namespace
Drupal\email_confirmerCode
public function createConfirmation($email) {
return $this->entityTypeManager
->getStorage('email_confirmer_confirmation')
->create([
'email' => $email,
]);
}