You are here

public function CallbackSerializer::render in Search Autocomplete 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/style/CallbackSerializer.php \Drupal\search_autocomplete\Plugin\views\style\CallbackSerializer::render()

Render the display in this style.

Overrides StylePluginBase::render

File

src/Plugin/views/style/CallbackSerializer.php, line 98

Class

CallbackSerializer
The style plugin for serialized output formats.

Namespace

Drupal\search_autocomplete\Plugin\views\style

Code

public function render() {

  // Group the rows according to the grouping instructions, if specified.
  $groups = $this
    ->renderGrouping($this->view->result, $this->options['grouping'], TRUE);
  $response = new AjaxResponse($groups);
  return $response
    ->getContent();
}