UserSession::getAccountName

public UserSession::getAccountName() Returns the unaltered login name of this account. Return value string An unsanitized plain-text string with the name of this account that is used to log in. Only display this name to admins and to the user who owns this account, and only in the context of the name used to login. For any other display purposes, use \Drupal\Core\Session\AccountInterface::getDisplayName() instead. Overrides AccountInterface::getAccountName File core/lib/Drupal/Core/Session/Use

UserSession::$roles

List of the roles this user has. Defaults to the anonymous role. Type: array File core/lib/Drupal/Core/Session/UserSession.php, line 26 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $roles = array(AccountInterface::ANONYMOUS_ROLE);

UserSession::$preferred_langcode

The preferred language code of the account. Type: string File core/lib/Drupal/Core/Session/UserSession.php, line 47 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $preferred_langcode;

UserSession

An implementation of the user account interface for the global user. @todo: Change all properties to protected. Hierarchy class \Drupal\Core\Session\UserSession implements AccountInterface File core/lib/Drupal/Core/Session/UserSession.php, line 10 Namespace Drupal\Core\Session Members Name Modifiers Type Description AccountInterface::ANONYMOUS_ROLE constant Role ID for anonymous users. AccountInterface::AUTHENTICATED_ROLE constant Role ID for authenticated users.

UserSession::$access

The Unix timestamp when the user last accessed the site. Type: string. File core/lib/Drupal/Core/Session/UserSession.php, line 33 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $access;

UserSession::$mail

The email address of this account. Type: string File core/lib/Drupal/Core/Session/UserSession.php, line 61 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $mail;

UserSession::$name

The name of this account. Type: string File core/lib/Drupal/Core/Session/UserSession.php, line 40 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code public $name = '';

UserRouteProvider

Provides routes for the user entity. Hierarchy class \Drupal\user\Entity\UserRouteProvider implements EntityRouteProviderInterface File core/modules/user/src/Entity/UserRouteProvider.php, line 13 Namespace Drupal\user\Entity Members Name Modifiers Type Description UserRouteProvider::getRoutes public function Provides routes for entities. Overrides EntityRouteProviderInterface::getRoutes

UserRouteProvider::getRoutes

public UserRouteProvider::getRoutes(EntityTypeInterface $entity_type) Provides routes for entities. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type Return value \Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files. Overrides EntityRouteProviderInterface::getRoutes File core/modules/user/src/Entity/UserRouteProvider.php, line

UserPermissionsRoleSpecificForm::getRoles

protected UserPermissionsRoleSpecificForm::getRoles() Gets the roles to display in this form. Return value \Drupal\user\RoleInterface[] An array of role objects. Overrides UserPermissionsForm::getRoles File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 23 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code protected function getRoles() { return array($this->userRole->