You are here

public function ContextDelete::submitForm in Chaos Tool Suite (ctools) 8.3

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/ContextDelete.php, line 74

Class

ContextDelete
Provides a form for deleting an contexts and relationships.

Namespace

Drupal\ctools\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirectUrl($this
    ->getCancelUrl());
}