You are here

public function User::getInitialEmail in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Entity/User.php \Drupal\user\Entity\User::getInitialEmail()

Returns the email that was used when the user was registered.

Return value

string Initial email address of the user.

Overrides UserInterface::getInitialEmail

File

core/modules/user/src/Entity/User.php, line 344
Contains \Drupal\user\Entity\User.

Class

User
Defines the user entity class.

Namespace

Drupal\user\Entity

Code

public function getInitialEmail() {
  return $this
    ->get('init')->value;
}