Associates a format with mime types.
@api
string $format The format:
string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type):
public function setFormat($format, $mimeTypes) {
if (null === static::$formats) {
static::initializeFormats();
}
static::$formats[$format] = is_array($mimeTypes) ? $mimeTypes : array(
$mimeTypes,
);
}