You are here

public function EmailConfirmation::isCancelled in Email confirmer 8

Returns if the confirmation is cancelled.

Return value

bool TRUE if the confirmation is cancelled, FALSE if it is active.

Overrides EmailConfirmationInterface::isCancelled

2 calls to EmailConfirmation::isCancelled()
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 183

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function isCancelled() {
  return $this
    ->get('status')->value == EmailConfirmationInterface::CANCELLED;
}