You are here

public function UserPermissionsRoleSpecificForm::buildForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php \Drupal\user\Form\UserPermissionsRoleSpecificForm::buildForm()

Parameters

string $role_id: The user role ID used for this form.

Overrides UserPermissionsForm::buildForm

File

core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 38
Contains \Drupal\user\Form\UserPermissionsRoleSpecificForm.

Class

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

Namespace

Drupal\user\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) {
  $this->userRole = $user_role;
  return parent::buildForm($form, $form_state);
}