You are here

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

Sets the request content type.

Parameters

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

1 call to AutocompletionCallback::setMimeType()
AutocompletionCallback::initDisplay in src/Plugin/views/display/AutocompletionCallback.php
Initializes the display plugin.

File

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

Class

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

Namespace

Drupal\search_autocomplete\Plugin\views\display

Code

public function setMimeType($mime_type) {
  $this->mimeType = $mime_type;
}