ContentFormats.containMimeType

Checks if a given mime type is part of the given formats.

class ContentFormats
bool
containMimeType
(
string mimeType
)

Parameters

mimeType string

the mime type to search for

Return Value

Type: bool

true if the mime_type was found