/** * Form submission handler. * * @param array $form * An associative array containing the structure of the form. * @param \Drupal\Core\Form\FormStateInterface $form_state * The current state of the form. */ public function submitForm(array &$form, FormStateInterface $form_state) { $config = $form_state->getValues(); backup_migrate_perform_restore($config['source_id'], $this->destination->id(), $this->backup_id, $config); $form_state->setRedirectUrl($this->getCancelUrl()); }
/** * {@inheritdoc} */ 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); }