ViewAddForm::cancel

public ViewAddForm::cancel(array $form, FormStateInterface $form_state)

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 202

Class

ViewAddForm
Form controller for the Views edit form.

Namespace

Drupal\views_ui

Code

public function cancel(array $form, FormStateInterface $form_state) {
  $form_state->setRedirect('entity.view.collection');
}
doc_Drupal
2016-10-29 09:53:47
Comments
Leave a Comment

Please login to continue.