public function DisplayPluginInterface::preview in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::preview()
- 9 core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::preview()
Renders the display for the purposes of a live preview.
Also might be used for some other AJAXy reason.
2 methods override DisplayPluginInterface::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/ DisplayPluginInterface.php, line 499
Class
- DisplayPluginInterface
- Provides an interface for Views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function preview();