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
1 2 3 | protected function getRoleStorage() { return \Drupal::entityManager()->getStorage( 'user_role' ); } |
Please login to continue.