$visitor->preferredMimeType()
Returns the MIME type from the provided list that is most accepted (= preferred) by the visitor
$visitor->preferredMimeType(string ...$mimeTypes): string|null
Parameters
Name | Type | Default | Description |
---|---|---|---|
...$mimeTypes | string |
no default value | MIME types to query for |
Return types
string
ornull
Preferred MIME type
This method modifies the existing $visitor
object it is applied to and returns it again.