UserPermissionsForm::getRoles

protected UserPermissionsForm::getRoles()

Gets the roles to display in this form.

Return value

\Drupal\user\RoleInterface[] An array of role objects.

File

core/modules/user/src/Form/UserPermissionsForm.php, line 78

Class

UserPermissionsForm
Provides the user permissions administration form.

Namespace

Drupal\user\Form

Code

protected function getRoles() {
  return $this->roleStorage->loadMultiple();
}
doc_Drupal
2016-10-29 09:52:55
Comments
Leave a Comment

Please login to continue.