User::getCreatedTime

public User::getCreatedTime() Returns the creation time of the user as a UNIX timestamp. Return value int Timestamp of the creation date. Overrides UserInterface::getCreatedTime File core/modules/user/src/Entity/User.php, line 237 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getCreatedTime() { return $this->get('created')->value; }

User::getDisplayName

public User::getDisplayName() Returns the display name of this account. By default, the passed-in object's 'name' property is used if it exists, or else, the site-defined value for the 'anonymous' variable. However, a module may override this by implementing hook_user_format_name_alter(&$name, $account). Return value string|\Drupal\Component\Render\MarkupInterface Either a string that will be auto-escaped on output or a MarkupInterface object that is already HTML escaped. Either is safe to

User::getEmail

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

User::getInitialEmail

public User::getInitialEmail() Returns the email that was used when the user was registered. Return value string Initial email address of the user. Overrides UserInterface::getInitialEmail File core/modules/user/src/Entity/User.php, line 339 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getInitialEmail() { return $this->get('init')->value; }

User::getLastAccessedTime

public User::getLastAccessedTime() The timestamp when the account last accessed the site. A value of 0 means the user has never accessed the site. Return value int Timestamp of the last access. Overrides AccountInterface::getLastAccessedTime File core/modules/user/src/Entity/User.php, line 244 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getLastAccessedTime() { return $this->get('access')->value; }

User::getLastLoginTime

public User::getLastLoginTime() Returns the UNIX timestamp when the user last logged in. Return value int Timestamp of the last login time. Overrides UserInterface::getLastLoginTime File core/modules/user/src/Entity/User.php, line 259 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getLastLoginTime() { return $this->get('login')->value; }

User::getPassword

public User::getPassword() Returns the hashed password. Return value string The hashed password. Overrides UserInterface::getPassword File core/modules/user/src/Entity/User.php, line 207 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getPassword() { return $this->get('pass')->value; }

User::getPreferredAdminLangcode

User::getPreferredAdminLangcode($fallback_to_default = TRUE) Returns the preferred administrative language code of the account. Defines which language is used on administrative pages. Parameters bool $fallback_to_default: (optional) Whether the return value will fall back to the site default language if the user has no administration language preference. Return value string The language code that is preferred by the account for administration pages. If the preferred language is not set or is

User::getPreferredLangcode

User::getPreferredLangcode($fallback_to_default = TRUE) Returns the preferred language code of the account. Parameters bool $fallback_to_default: (optional) Whether the return value will fall back to the site default language if the user has no language preference. Return value string The language code that is preferred by the account. If the preferred language is not set or is a language not configured anymore on the site, the site default is returned or an empty string is returned (if $fall

User::getRoles

public User::getRoles($exclude_locked_roles = FALSE) Returns a list of roles. Parameters bool $exclude_locked_roles: (optional) If TRUE, locked roles (anonymous/authenticated) are not returned. Return value array List of role IDs. Overrides AccountInterface::getRoles File core/modules/user/src/Entity/User.php, line 142 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getRoles($exclude_locked_roles = FALSE) { $roles = array(); // Users w