$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
stringornull
Preferred MIME type
This method modifies the existing $visitor object it is applied to and returns it again.