public function FileForm::submitForm in Drupal-to-Drupal data migration 8.3
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
- migrate_d2d_ui/
src/ Form/ FileForm.php, line 109
Class
- FileForm
- Simple wizard step form.
Namespace
Drupal\migrate_d2d_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$cached_values = $form_state
->getTemporaryValue('wizard');
$cached_values['file_migration'] = $form_state
->getValue('file_migration');
$cached_values['picture_migration'] = $form_state
->getValue('picture_migration');
$cached_values['source_base_path'] = $form_state
->getValue('source_base_path');
$form_state
->setTemporaryValue('wizard', $cached_values);
}