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
Namespace
Drupal\restful\Plugin\formatterCode
public function getContentTypeHeader();