You are here

public function FormatterInterface::getContentTypeHeader in RESTful 7.2

Returns the content type for the selected output format.

Return value

string The contents for the ContentType header in the response.

1 method overrides FormatterInterface::getContentTypeHeader()
Formatter::getContentTypeHeader in src/Plugin/formatter/Formatter.php
Returns the content type for the selected output format.

File

src/Plugin/formatter/FormatterInterface.php, line 61
Contains \Drupal\restful\Plugin\formatter\FormatterInterface

Class

FormatterInterface

Namespace

Drupal\restful\Plugin\formatter

Code

public function getContentTypeHeader();