$visitor->acceptedLanguage()
Sets the accepted language if provided or returns the user's accepted language otherwise
$visitor->acceptedLanguage(string|null $acceptedLanguage = null): Kirby\Http\Visitor|Kirby\Toolkit\Obj|null
Parameters
Name | Type | Default |
---|---|---|
$acceptedLanguage | 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.