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::$uid

User ID. Type: int File core/lib/Drupal/Core/Session/UserSession.php, line 17 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $uid = 0;

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::$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 = '';

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;

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