You are here

protected property RestExport::$contentType in Drupal 8

Same name and namespace in other branches
  1. 9 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

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';