UserPermissionsRoleSpecificForm::buildForm

public UserPermissionsRoleSpecificForm::buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL)

Parameters

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

Overrides UserPermissionsForm::buildForm

File

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

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);
}
doc_Drupal
2016-10-29 09:52:57
Comments
Leave a Comment

Please login to continue.