$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.