function TableDragExampleSimpleForm::cancel
Same name in other branches
- 3.x modules/tabledrag_example/src/Form/TableDragExampleSimpleForm.php \Drupal\tabledrag_example\Form\TableDragExampleSimpleForm::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/ TableDragExampleSimpleForm.php, line 153
Class
- TableDragExampleSimpleForm
- Table drag example simple form.
Namespace
Drupal\tabledrag_example\FormCode
public function cancel(array &$form, FormStateInterface $form_state) {
$form_state->setRedirect('tabledrag_example.description');
}