$visitor->acceptedMimeType()
Sets the accepted mime type if provided or returns the user's accepted mime type otherwise
$visitor->acceptedMimeType(string|null $acceptedMimeType = null): Kirby\Http\Visitor|Kirby\Toolkit\Obj|null
Parameters
| Name | Type | Default |
|---|---|---|
| $acceptedMimeType | stringornull |
null
|
Return types
Kirby\Http\VisitororKirby\Toolkit\Objornull
This method modifies the existing $visitor object it is applied to and returns it again.