function DisplayPluginBase::preview in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::preview()
Renders the display for the purposes of a live preview.
Also might be used for some other AJAXy reason.
Overrides DisplayPluginInterface::preview
3 methods override DisplayPluginBase::preview()
- DisplayTest::preview in core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ display/ DisplayTest.php - Renders the display for the purposes of a live preview.
- Feed::preview in core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php - Renders the display for the purposes of a live preview.
- RestExport::preview in core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php - The DisplayPluginBase preview method assumes we will be returning a render array. The data plugin will already return the serialized string.
File
- core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 2385 - Contains \Drupal\views\Plugin\views\display\DisplayPluginBase.
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
function preview() {
return $this->view
->render();
}