You are here

public function PoolAssignmentForm::submitForm in CMS Content Sync 2.0.x

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

Class

PoolAssignmentForm

Namespace

Drupal\cms_content_sync\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $triggering_element = $form_state
    ->getTriggeringElement();
  if (isset($triggering_element['#next_step'])) {
    $this->step = $triggering_element['#next_step'];
    $form_state
      ->setRebuild(true);
  }
}