public function EmailConfirmation::isConfirmed in Email confirmer 8
Returns if the confirmation is done.
Return value
bool TRUE if the confirmation is done, FALSE if it is not confirmed.
Overrides EmailConfirmationInterface::isConfirmed
2 calls to EmailConfirmation::isConfirmed()
- EmailConfirmation::getStatus in src/
Entity/ EmailConfirmation.php - Returns the most representative current status of the email confirmation.
- EmailConfirmation::isPending in src/
Entity/ EmailConfirmation.php - Returns if the confirmation is in a proper status to get response.
File
- src/
Entity/ EmailConfirmation.php, line 190
Class
- EmailConfirmation
- Defines the email confirmation entity class.
Namespace
Drupal\email_confirmer\EntityCode
public function isConfirmed() {
return $this
->get('confirmed')->value == EmailConfirmationInterface::CONFIRMED;
}