You are here

protected function UserSession::getRoleStorage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Session/UserSession.php \Drupal\Core\Session\UserSession::getRoleStorage()

Returns the role storage object.

Return value

\Drupal\user\RoleStorageInterface The role storage object.

File

core/lib/Drupal/Core/Session/UserSession.php, line 209
Contains \Drupal\Core\Session\UserSession.

Class

UserSession
An implementation of the user account interface for the global user.

Namespace

Drupal\Core\Session

Code

protected function getRoleStorage() {
  return \Drupal::entityManager()
    ->getStorage('user_role');
}