Display::submitForm

public Display::submitForm(array &$form, FormStateInterface $form_state)

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ViewsFormBase::submitForm

File

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

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();
}
doc_Drupal
2016-10-29 09:02:35
Comments
Leave a Comment

Please login to continue.