You are here

public function RestExport::getContentType 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::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\display

Code

public function getContentType() {
  return $this->contentType;
}