function ResolverRelationshipDelete::submitForm

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

Overrides FormInterface::submitForm

File

src/Form/ResolverRelationshipDelete.php, line 121

Class

ResolverRelationshipDelete
Resolver Relatinoship Delete 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);
    $form_state->setRedirectUrl($this->getCancelUrl($cached_values));
}