You are here

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

Gets the mime type.

This will return any overridden mime type, otherwise returns the mime type from the request.

Return value

string The response mime type. E.g. 'application/json'.

1 call to AutocompletionCallback::getMimeType()
AutocompletionCallback::render in src/Plugin/views/display/AutocompletionCallback.php
Renders this display.

File

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

Class

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

Namespace

Drupal\search_autocomplete\Plugin\views\display

Code

public function getMimeType() {
  return $this->mimeType;
}