RestExport::$contentType

Same name and namespace in other branches
  1. 8.9.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::contentType
  2. 10 core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\RestExport::contentType
  3. 11.x core/modules/rest/src/Plugin/views/display/RestExport.php \Drupal\rest\Plugin\views\display\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 66

Class

RestExport
The plugin that handles Data response callbacks for REST resources.

Namespace

Drupal\rest\Plugin\views\display

Code

protected $contentType = 'json';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.