public function views_plugin_display_services::preview in Services Views 7
Fully render the display.
Used for the purposes of a live preview or some other AJAXy reason.
Overrides views_plugin_display::preview
File
- includes/
views/ views_plugin_display_services.inc, line 102 - Contains the page display plugin.
Class
- views_plugin_display_services
- The plugin that handles a Services callback.
Code
public function preview() {
module_load_include('resource.inc', 'services_views');
return '<pre>' . json_encode(services_views_execute_view(NULL, $this->view, $this->display->id), JSON_PRETTY_PRINT) . '</pre>';
}