You are here

public function ContentSelectForm::submitForm in WordPress Migrate 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

wordpress_migrate_ui/src/Form/ContentSelectForm.php, line 96

Class

ContentSelectForm
Simple wizard step form.

Namespace

Drupal\wordpress_migrate_ui\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $cached_values = $form_state
    ->getTemporaryValue('wizard');
  $cached_values['post']['type'] = $form_state
    ->getValue('blog_post_type');
  $cached_values['page']['type'] = $form_state
    ->getValue('page_type');
  $form_state
    ->setTemporaryValue('wizard', $cached_values);
}