function UserPermissionsRoleSpecificForm::getRoles
Same name in other branches
- 8.9.x core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::getRoles()
- 10 core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::getRoles()
- 11.x core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::getRoles()
Overrides UserPermissionsForm::getRoles
File
-
core/
modules/ user/ src/ Form/ UserPermissionsRoleSpecificForm.php, line 25
Class
- UserPermissionsRoleSpecificForm
- Provides the user permissions administration form for a specific role.
Namespace
Drupal\user\FormCode
protected function getRoles() {
return [
$this->userRole
->id() => $this->userRole,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.