UserInterface::isBlocked

public UserInterface::isBlocked() Returns TRUE if the user is blocked. Return value bool TRUE if the user is blocked, false otherwise. File core/modules/user/src/UserInterface.php, line 136 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function isBlocked();

UserInterface::setExistingPassword

public UserInterface::setExistingPassword($password) Sets the existing plain text password. Required for validation when changing the password, name or email fields. Parameters string $password: The existing plain text password of the user. Return value $this File core/modules/user/src/UserInterface.php, line 172 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function setExistingPassword($password);

UserInterface::removeRole

public UserInterface::removeRole($rid) Remove a role from a user. Parameters string $rid: The role ID to remove. File core/modules/user/src/UserInterface.php, line 41 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function removeRole($rid);

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);

UserInterface::checkExistingPassword

public UserInterface::checkExistingPassword(UserInterface $account_unchanged) Checks the existing password if set. Parameters \Drupal\user\UserInterface $account_unchanged: The unchanged user entity to compare against. Return value bool TRUE if the correct existing password was provided. See also UserInterface::setExistingPassword() File core/modules/user/src/UserInterface.php, line 185 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code publ

UserInterface::getPassword

public UserInterface::getPassword() Returns the hashed password. Return value string The hashed password. File core/modules/user/src/UserInterface.php, line 60 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function getPassword();

UserInterface::getCreatedTime

public UserInterface::getCreatedTime() Returns the creation time of the user as a UNIX timestamp. Return value int Timestamp of the creation date. File core/modules/user/src/UserInterface.php, line 90 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function getCreatedTime();

UserInterface::block

public UserInterface::block() Blocks the user. Return value \Drupal\user\UserInterface The called user entity. File core/modules/user/src/UserInterface.php, line 152 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function block();

UserInterface::getLastLoginTime

public UserInterface::getLastLoginTime() Returns the UNIX timestamp when the user last logged in. Return value int Timestamp of the last login time. File core/modules/user/src/UserInterface.php, line 109 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function getLastLoginTime();

UserInterface::getInitialEmail

public UserInterface::getInitialEmail() Returns the email that was used when the user was registered. Return value string Initial email address of the user. File core/modules/user/src/UserInterface.php, line 160 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function getInitialEmail();