You are here

public static function EmailConfirmation::getRequestTime in Email confirmer 8

Default value callback for 'created' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/EmailConfirmation.php, line 466

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public static function getRequestTime() {
  return [
    \Drupal::time()
      ->getRequestTime(),
  ];
}