function ManageConditions::submitForm

Same name in other branches
  1. 8.x-3.x src/Form/ManageConditions.php \Drupal\ctools\Form\ManageConditions::submitForm()

Overrides FormInterface::submitForm

File

src/Form/ManageConditions.php, line 105

Class

ManageConditions

Namespace

Drupal\ctools\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $cached_values = $form_state->getTemporaryValue('wizard');
    [
        ,
        $route_parameters,
    ] = $this->getOperationsRouteInfo($cached_values, $this->machine_name, $form_state->getValue('conditions'));
    $form_state->setRedirect($this->getAddRoute($cached_values), $route_parameters);
}