function 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 354
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\EntityCode
public function getInitialEmail() {
return $this->get('init')->value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.