You are here

public function EmailConfirmation::getIp in Email confirmer 8

Returns the IP address associated with this confirmation process.

Commonly the IP address from where the confirmation was started.

Return value

string The IP address, FALSE if empty.

Overrides EmailConfirmationInterface::getIp

1 call to EmailConfirmation::getIp()
EmailConfirmation::getHash in src/Entity/EmailConfirmation.php
Calculate hash for this email confirmation.

File

src/Entity/EmailConfirmation.php, line 350

Class

EmailConfirmation
Defines the email confirmation entity class.

Namespace

Drupal\email_confirmer\Entity

Code

public function getIp() {
  return $this
    ->get('ip')
    ->isEmpty() ? FALSE : $this
    ->get('ip')
    ->getString();
}