You are here

public function FlowPullConfirmation::submitForm in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Form/FlowPullConfirmation.php \Drupal\cms_content_sync\Form\FlowPullConfirmation::submitForm()
  2. 2.0.x src/Form/FlowPullConfirmation.php \Drupal\cms_content_sync\Form\FlowPullConfirmation::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/FlowPullConfirmation.php, line 148

Class

FlowPullConfirmation
Provides a pool pull all confirmation page.

Namespace

Drupal\cms_content_sync\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity.cms_content_sync_flow.pull', [
    'cms_content_sync_flow' => $this->flow
      ->id(),
    'pull_mode' => $form_state
      ->getValue('pull_mode'),
  ]);
}