public function AccountProxy::getEmail in Restrict Login or Role Access by IP Address 8.4
Returns the email address of this account.
Return value
string|null The email address, or NULL if the account is anonymous or the user does not have an email address.
Overrides AccountInterface::getEmail
File
- src/
Session/ AccountProxy.php, line 139 - Contains \Drupal\restrict_by_ip\Session\AccountProxy.
Class
- AccountProxy
- When the current user is loaded, remove any roles that are restricted based on IP whitelists. Proxy all other method calls to the original current_user service.
Namespace
Drupal\restrict_by_ip\SessionCode
public function getEmail() {
return $this->original
->getEmail();
}