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'.
File
- drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php, line 133
- Contains \Drupal\rest\Plugin\views\display\RestExport.
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\Plugin\views\display
Code
public function getMimeType() {
return $this->mimeType;
}