Skip to content

Kirby 5.0.4

$visitor->acceptsLanguage()

Checks if the user accepts the given language

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

Parameters

Name Type Default
$coderequired string no default value

Return type

bool

This method modifies the existing $visitor object it is applied to and returns it again.

Parent class

Kirby\Http\Visitor