You are here

public function ViewPreviewForm::submitPreview in Zircon Profile 8.0

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 106
Contains \Drupal\views_ui\ViewPreviewForm.

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();
}