$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 | string ornull |
null
|
Return types
Kirby\Http\Visitor
orKirby\Toolkit\Obj
ornull
This method modifies the existing $visitor
object it is applied to and returns it again.