Skip to content

Kirby 3.8.4

$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