Gets the content type.
Return value
string
The content type machine name. E.g. 'json'.
File
- drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php, line 153
- Contains \Drupal\rest\Plugin\views\display\RestExport.
Class
- RestExport
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\rest\Plugin\views\display
Code
public function getContentType() {
return $this->contentType;
}