RestExport::$contentType
Overrides the content type of the data response, if needed.
Type: string
File
-
core/
modules/ rest/ src/ Plugin/ views/ display/ RestExport.php, line 68
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\Plugin\views\displayCode
protected $contentType = 'json';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.