UserSession::getRoleStorage

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

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');
}
doc_Drupal
2016-10-29 09:53:02
Comments
Leave a Comment

Please login to continue.