Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewUI.php

function ViewUI::standardCancel

Submit handler for cancel button.

File

core/modules/views_ui/src/ViewUI.php, line 272

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function standardCancel($form, FormStateInterface $form_state) {
    if (!empty($this->changed) && isset($this->form_cache)) {
        unset($this->form_cache);
        $this->cacheSet();
    }
    $form_state->setRedirectUrl($this->toUrl('edit-form'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal