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'); }
Please login to continue.