public function User::getInitialEmail in Drupal 9
Same name and namespace in other branches
- 8 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;
}