public function ViewAddForm::cancel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views_ui/src/ViewAddForm.php \Drupal\views_ui\ViewAddForm::cancel()
Form submission handler for the 'cancel' 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
- core/
modules/ views_ui/ src/ ViewAddForm.php, line 207 - Contains \Drupal\views_ui\ViewAddForm.
Class
- ViewAddForm
- Form controller for the Views edit form.
Namespace
Drupal\views_uiCode
public function cancel(array $form, FormStateInterface $form_state) {
$form_state
->setRedirect('entity.view.collection');
}