User::getInitialEmail

public 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 339

Class

User
Defines the user entity class.

Namespace

Drupal\user\Entity

Code

public function getInitialEmail() {
  return $this->get('init')->value;
}
doc_Drupal
2016-10-29 09:52:06
Comments
Leave a Comment

Please login to continue.