function RelationshipConfigure::submitForm

Same name in other branches
  1. 4.0.x src/Form/RelationshipConfigure.php \Drupal\ctools\Form\RelationshipConfigure::submitForm()

Overrides FormInterface::submitForm

File

src/Form/RelationshipConfigure.php, line 118

Class

RelationshipConfigure
Configure Relationship Form.

Namespace

Drupal\ctools\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $cached_values = $this->tempstore
        ->get($this->tempstore_id)
        ->get($this->machine_name);
    [
        $route_name,
        $route_options,
    ] = $this->getParentRouteInfo($cached_values);
    $form_state->setRedirect($route_name, $route_options);
}