public function AutocompletionCallback::setContentType in Search Autocomplete 8
Same name and namespace in other branches
- 2.x src/Plugin/views/display/AutocompletionCallback.php \Drupal\search_autocomplete\Plugin\views\display\AutocompletionCallback::setContentType()
Sets the content type.
Parameters
string $content_type: The content type machine name. E.g. 'json'.
1 call to AutocompletionCallback::setContentType()
- AutocompletionCallback::initDisplay in src/
Plugin/ views/ display/ AutocompletionCallback.php - Initializes the display plugin.
File
- src/
Plugin/ views/ display/ AutocompletionCallback.php, line 174
Class
- AutocompletionCallback
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\search_autocomplete\Plugin\views\displayCode
public function setContentType($content_type) {
$this->contentType = $content_type;
}