ContentType.getMimeType

Gets the mime type for the content type, if one is registered.

class ContentType
static
string
getMimeType
(
string type
)

Parameters

type string

a content type string

Return Value

Type: string

the registered mime type for the given type, or NULL if unknown. [allow-none]

Meta