function DisplayPluginBase::preview
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::preview()
- 10 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::preview()
- 11.x core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::preview()
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 2469
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function preview() {
return $this->view
->render();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.