public function MassPasswordResetConfirmForm::buildForm in Mass Password Reset 8
Same name and namespace in other branches
- 2.x 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\FormCode
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);
}