summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Rowlands2018-01-04 07:07:40 +1000
committerLee Rowlands2018-01-04 07:07:40 +1000
commit354462c6f6fb7407d1ef319d49d9fba72e5e0e5d (patch)
tree7d0cbee4d2de18f2554a8abf460988fd7d9c5318
parentf9445b466bd19c6bf4b017ac6582fb0c85794117 (diff)
Issue #2932774 by harsha012, gaurav.kapoor, neelam.chaudhary, dpi: Update docs for getEmail, can return null
-rw-r--r--core/lib/Drupal/Core/Session/AccountInterface.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Session/AccountInterface.php b/core/lib/Drupal/Core/Session/AccountInterface.php
index 1cf82dc..ba3ed93 100644
--- a/core/lib/Drupal/Core/Session/AccountInterface.php
+++ b/core/lib/Drupal/Core/Session/AccountInterface.php
@@ -148,8 +148,9 @@ interface AccountInterface {
/**
* Returns the email address of this account.
*
- * @return string
- * The email address.
+ * @return string|null
+ * The email address, or NULL if the account is anonymous or the user does
+ * not have an email address.
*/
public function getEmail();