You are here

public function EmailConfirmation::setLastRequestDate in Email confirmer 8

Sets the date of the last request sent.

Parameters

int $timestamp: Date timestamp to set. Unset current if NULL.

Return value

\Drupal\email_confirmer\EmailConfirmationInterface The called email confirmation entity.

Overrides EmailConfirmationInterface::setLastRequestDate

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

File

src/Entity/EmailConfirmation.php, line 414

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function setLastRequestDate($timestamp) {
  $this
    ->get('sent')
    ->setValue($timestamp);
  return $this;
}