Skip to content

Kirby 4.4.1

$visitor->preferredMimeType()

Returns the MIME type from the provided list that is most accepted (= preferred) by the visitor

$visitor->preferredMimeType(string ...$mimeTypes = null): string|null

Parameters

Name Type Default Description
... $mimeTypes string null MIME types to query for

Return type

string|null

Parent class

Kirby\Http\Visitor