public function 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

drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php, line 257
Contains \Drupal\rest\Plugin\views\display\RestExport.

Class

RestExport
The plugin that handles Data response callbacks for REST resources.

Namespace

Drupal\rest\Plugin\views\display

Code

public function preview() {
  return $this->view
    ->render();
}