You are here

public function TableDragExampleRootLeafForm::cancel in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 tabledrag_example/src/Form/TableDragExampleRootLeafForm.php \Drupal\tabledrag_example\Form\TableDragExampleRootLeafForm::cancel()

Form submission handler for the 'Return to' action.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

modules/tabledrag_example/src/Form/TableDragExampleRootLeafForm.php, line 237

Class

TableDragExampleRootLeafForm
Table drag example root leaf form.

Namespace

Drupal\tabledrag_example\Form

Code

public function cancel(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('tabledrag_example.description');
}