function views_ui_build_preview

Page callback for rendering the preview form and the preview of the view.

Parameters

\Drupal\views_ui\ViewUI $view: The view UI object to preview.

string $display_id: The display ID to preview.

Return value

array The form array of the full preview form.

1 string reference to 'views_ui_build_preview'
views_ui_menu in drupal/core/modules/views/views_ui/views_ui.module
Implements hook_menu().

File

drupal/core/modules/views/views_ui/admin.inc, line 329
Provides the Views' administrative interface.

Code

function views_ui_build_preview(ViewUI $view, $display_id) {
  $view->displayID = $display_id;
  return entity_get_form($view, 'preview');
}