public function BackupRestoreForm::submitForm in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Form/BackupRestoreForm.php \Drupal\backup_migrate\Form\BackupRestoreForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ BackupRestoreForm.php, line 91
Class
Namespace
Drupal\backup_migrate\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $form_state
->getValues();
backup_migrate_perform_restore($config['source_id'], $this->destination
->id(), $this->backupId, $config);
$form_state
->setRedirectUrl($this
->getCancelUrl());
}