public function ViewUI::standardCancel in Views (for Drupal 7) 8.3
Submit handler for cancel button
File
- views_ui/
lib/ Drupal/ views_ui/ ViewUI.php, line 614 - Definition of Drupal\views_ui\ViewUI.
Class
- ViewUI
- Stores UI related temporary settings.
Namespace
Drupal\views_uiCode
public function standardCancel($form, &$form_state) {
if (!empty($this->changed) && isset($this->form_cache)) {
unset($this->form_cache);
views_ui_cache_set($this);
}
$form_state['redirect'] = 'admin/structure/views/view/' . $this->storage->name . '/edit';
}