Skip to content

Kirby 4.2.0

$visitor->acceptsLanguage()

Checks if the user accepts the given language

$visitor->acceptsLanguage(string $code): bool

Parameters

Name Type Default
$code * string

Return type

bool

Parent class

Kirby\Http\Visitor