function UserPermissionsRoleSpecificForm::getRoles

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

Code

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.