$visitor->userAgent() Sets the user agent if provided or returns the user agent string of the current visitor otherwise kirby/src/Http/Visitor.php#L244 $visitor->userAgent(string $userAgent = null): string|Visitor|null Parameters Name Type Default $userAgent string null Return type string|Visitor|null Parent class Kirby\Http\Visitor