You are here

public function BackupDeleteForm::buildForm in Backup and Migrate 8.4

Same name and namespace in other branches
  1. 5.0.x src/Form/BackupDeleteForm.php \Drupal\backup_migrate\Form\BackupDeleteForm::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/BackupDeleteForm.php, line 72

Class

BackupDeleteForm

Namespace

Drupal\backup_migrate\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $backup_migrate_destination = NULL, $backup_id = NULL) {
  $this->destination = $backup_migrate_destination;
  $this->backup_id = $backup_id;
  return parent::buildForm($form, $form_state);
}