public User::getEmail()
Returns the email address of this account.
Return value
string The email address.
Overrides AccountInterface::getEmail
File
- core/modules/user/src/Entity/User.php, line 222
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\Entity
Code
public function getEmail() { return $this->get('mail')->value; }
Please login to continue.