function RequiredContext::submitForm

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

Overrides FormInterface::submitForm

File

src/Form/RequiredContext.php, line 108

Class

RequiredContext
Required Context Form.

Namespace

Drupal\ctools\Form

Code

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