You are here

public function RestWSBaseFormat::mimeType in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.formats.inc \RestWSBaseFormat::mimeType()

Returns the mime type of this format, e.g. 'application/json' or 'application/xml'.

Overrides RestWSFormatInterface::mimeType

File

./restws.formats.inc, line 192
RESTful web services module formats.

Class

RestWSBaseFormat
A base for all simple formats that are just serializing/unserializing an array of property values.

Code

public function mimeType() {
  return $this->formatInfo['mime type'];
}