You are here

protected function UserPermissionsRoleSpecificForm::getRoles in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::getRoles()
  2. 9 core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::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\Form

Code

protected function getRoles() {
  return [
    $this->userRole
      ->id() => $this->userRole,
  ];
}