You are here

public function MassPasswordResetConfirmForm::buildForm in Mass Password Reset 2.x

Same name and namespace in other branches
  1. 8 src/Form/MassPasswordResetConfirmForm.php \Drupal\mass_pwreset\Form\MassPasswordResetConfirmForm::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/MassPasswordResetConfirmForm.php, line 73

Class

MassPasswordResetConfirmForm
Mass Password Reset Form.

Namespace

Drupal\mass_pwreset\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  // Display selected roles to user.
  $form['roles'] = [
    '#theme' => 'item_list',
    '#title' => t('Selected Roles'),
    '#items' => $this->batchData['roles'],
  ];
  return parent::buildForm($form, $form_state);
}