You are here

public function AutocompletionCallback::execute 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::execute()

Executes the view and returns data in the format required.

The base class cannot be executed.

Overrides PathPluginBase::execute

File

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

Class

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

Namespace

Drupal\search_autocomplete\Plugin\views\display

Code

public function execute() {
  parent::execute();
  return $this->view
    ->render();
}