public function User::getInitialEmail in Drupal 8
Same name and namespace in other branches
- 9 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 354
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\EntityCode
public function getInitialEmail() {
return $this
->get('init')->value;
}