You are here

public function EmailConfirmation::getLastRequestDate in Email confirmer 8

Returns the date of the last request sent.

Return value

int Unix timestamp of the last request sent. FALSE if no request already sent.

Overrides EmailConfirmationInterface::getLastRequestDate

1 call to EmailConfirmation::getLastRequestDate()
EmailConfirmation::sendRequest in src/Entity/EmailConfirmation.php
Sends the email confirmation request.

File

src/Entity/EmailConfirmation.php, line 407

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function getLastRequestDate() {
  return $this
    ->get('sent')
    ->isEmpty() ? FALSE : intval($this
    ->get('sent')
    ->getString());
}