You are here

public function Display::submitForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/Form/Ajax/Display.php \Drupal\views_ui\Form\Ajax\Display::submitForm()
  2. 9 core/modules/views_ui/src/Form/Ajax/Display.php \Drupal\views_ui\Form\Ajax\Display::submitForm()

File

core/modules/views_ui/src/Form/Ajax/Display.php, line 108

Class

Display
Provides a form for editing the Views display.

Namespace

Drupal\views_ui\Form\Ajax

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $view = $form_state
    ->get('view');
  $display_id = $form_state
    ->get('display_id');
  $view
    ->getExecutable()->displayHandlers
    ->get($display_id)
    ->submitOptionsForm($form['options'], $form_state);
  $view
    ->cacheSet();
}