You are here

public function AutocompletionCallback::preview in Search Autocomplete 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/display/AutocompletionCallback.php \Drupal\search_autocomplete\Plugin\views\display\AutocompletionCallback::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

src/Plugin/views/display/AutocompletionCallback.php, line 284

Class

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

Namespace

Drupal\search_autocomplete\Plugin\views\display

Code

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