User::getRoleStorage

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

Please login to continue.