protected User::getRoleStorage()
Returns the role storage object.
Return value
\Drupal\user\RoleStorageInterface The role storage object.
File
- core/modules/user/src/Entity/User.php, line 546
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\Entity
Code
protected function getRoleStorage() { return \Drupal::entityManager()->getStorage('user_role'); }
Please login to continue.