You are here

public static function EmailConfirmation::getRequestIp in Email confirmer 8

Default value callback for 'ip' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/EmailConfirmation.php, line 454

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public static function getRequestIp() {
  return [
    \Drupal::request()
      ->getClientIp(),
  ];
}