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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!UserSession.php/property/UserSession::roles/8.1.x