$visitor->acceptedMimeType()
Sets the accepted mime type if provided or returns the user's accepted mime type otherwise
$visitor->acceptedMimeType(string $acceptedMimeType = null): Kirby\Toolkit\Obj|Kirby\Http\Visitor|null
Parameters
| Name | Type | Default |
|---|---|---|
| $acceptedMimeType | string |
null |
Return type
Kirby\Toolkit\Obj|Kirby\Http\Visitor|null
This method does not modify the existing $visitor object but returns a new object with the changes applied. Learn more →