public function UserRoleDelete::buildForm

Parameters

\Drupal\user\RoleInterface $user_role: The role being deleted.

Overrides ConfirmFormBase::buildForm

File

drupal/core/modules/user/lib/Drupal/user/Form/UserRoleDelete.php, line 58
Contains \Drupal\user\Form\UserRoleDelete.

Class

UserRoleDelete
Provides a deletion confirmation form for Role entity.

Namespace

Drupal\user\Form

Code

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