public function ViewAddFormController::cancel

Form submission handler for the 'cancel' action.

Parameters

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

array $form_state: A reference to a keyed array containing the current state of the form.

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewAddFormController.php, line 218
Contains Drupal\views_ui\ViewAddFormController.

Class

ViewAddFormController
Form controller for the Views edit form.

Namespace

Drupal\views_ui

Code

public function cancel(array $form, array &$form_state) {
  $form_state['redirect'] = 'admin/structure/views';
}