You are here

public function EmailConfirmation::setCreatedTime in Email confirmer 8

Sets the email confirmation creation timestamp.

Parameters

int $timestamp: The email confirmation creation timestamp.

Return value

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

Overrides EmailConfirmationInterface::setCreatedTime

File

src/Entity/EmailConfirmation.php, line 429

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

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