function RestExport::preview
Same name in other branches
- 9 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::preview()
- 8.9.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::preview()
- 11.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::preview()
The DisplayPluginBase preview method assumes we will be returning a render array. The data plugin will already return the serialized string.
Overrides DisplayPluginBase::preview
File
-
core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php, line 473
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\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.