public function BackupMigrateRestoreForm::submitForm in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Form/BackupMigrateRestoreForm.php \Drupal\backup_migrate\Form\BackupMigrateRestoreForm::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/ BackupMigrateRestoreForm.php, line 55
Class
- BackupMigrateRestoreForm
- Provides a form for performing a 1-click site backup.
Namespace
Drupal\backup_migrate\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $form_state
->getValues();
backup_migrate_perform_restore($config['source_id'], 'upload', 'backup_migrate_restore_upload', $config);
}