public function JsonFeed::preview in JSON Feed 8
The DisplayPluginBase preview method assumes we will be returning a render array. The data plugin will already return the serialized string.
Overrides Feed::preview
File
- src/
Plugin/ views/ display/ JsonFeed.php, line 150
Class
- JsonFeed
- The plugin that handles a JSON feed.
Namespace
Drupal\json_feed\Plugin\views\displayCode
public function preview() {
return $this->view
->render();
}