UserPermissionsRoleSpecificForm::getRoles

protected UserPermissionsRoleSpecificForm::getRoles()

Gets the roles to display in this form.

Return value

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

Overrides UserPermissionsForm::getRoles

File

core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 23

Class

UserPermissionsRoleSpecificForm
Provides the user permissions administration form for a specific role.

Namespace

Drupal\user\Form

Code

protected function getRoles() {
  return array($this->userRole->id() => $this->userRole);
}
doc_Drupal
2016-10-29 09:52:58
Comments
Leave a Comment

Please login to continue.