You are here

public function ConfigRevertConfirmForm::buildForm in Configuration Update Manager 8

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

config_update_ui/src/Form/ConfigRevertConfirmForm.php, line 128

Class

ConfigRevertConfirmForm
Defines a confirmation form for reverting configuration.

Namespace

Drupal\config_update_ui\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $config_type = NULL, $config_name = NULL) {
  $this->type = $config_type;
  $this->name = $config_name;
  $form = parent::buildForm($form, $form_state);
  return $form;
}