You are here

public function ViewPreviewForm::submitPreview in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewPreviewForm.php \Drupal\views_ui\ViewPreviewForm::submitPreview()

Form submission handler for the Preview button.

File

core/modules/views_ui/src/ViewPreviewForm.php, line 103

Class

ViewPreviewForm
Form controller for the Views preview form.

Namespace

Drupal\views_ui

Code

public function submitPreview($form, FormStateInterface $form_state) {
  $form_state
    ->set('show_preview', TRUE);
  $form_state
    ->setRebuild();
}