function RestExport::getContentType
Same name in other branches
- 9 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getContentType()
- 10 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getContentType()
- 11.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::getContentType()
Gets the content type.
Return value
string The content type machine name. E.g. 'json'.
1 call to RestExport::getContentType()
- RestExport::initDisplay in core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php - Initializes the display plugin.
File
-
core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php, line 254
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\Plugin\views\displayCode
public function getContentType() {
return $this->contentType;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.