Skip to content

Kirby 4.4.1

$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