function RestExport::getMimeType
Same name in other branches
- 9 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getMimeType()
- 10 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getMimeType()
- 11.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::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 RestExport::getMimeType()
- RestExport::render in core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php - Renders this display.
File
-
core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php, line 234
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\Plugin\views\displayCode
public function getMimeType() {
return $this->mimeType;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.