ViewUI::standardCancel

public ViewUI::standardCancel($form, FormStateInterface $form_state)

Submit handler for cancel button

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

1
2
3
4
5
6
7
8
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->urlInfo('edit-form'));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.