UserInterface::setEmail

public UserInterface::setEmail($mail)

Sets the email address of the user.

Parameters

string $mail: The new email address of the user.

Return value

\Drupal\user\UserInterface The called user entity.

File

core/modules/user/src/UserInterface.php, line 82

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

public function setEmail($mail);
doc_Drupal
2016-10-29 09:52:35
Comments
Leave a Comment

Please login to continue.