You are here

public function DisplayTest::preview in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php \Drupal\views_test_data\Plugin\views\display\DisplayTest::preview()

Renders the display for the purposes of a live preview.

Also might be used for some other AJAXy reason.

Overrides DisplayPluginBase::preview

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php, line 132

Class

DisplayTest
Defines a Display test plugin.

Namespace

Drupal\views_test_data\Plugin\views\display

Code

public function preview() {
  return $this
    ->execute();
}