Skip to content

Kirby 3.6.6

$visitor->acceptedLanguage()

Sets the accepted language if provided or returns the user's accepted language otherwise

$visitor->acceptedLanguage(string $acceptedLanguage = null): Kirby\Toolkit\Obj|Kirby\Http\Visitor|null

Parameters

Name Type Default
$acceptedLanguage string null

Return type

Kirby\Toolkit\Obj|Kirby\Http\Visitor|null

Parent class

Kirby\Http\Visitor