Skip to content

Kirby 5.0.4

$visitor->acceptsMimeType()

Checks if the user accepts the given mime type

$visitor->acceptsMimeType(string $mimeType): bool

Parameters

Name Type Default
$mimeTyperequired 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