Skip to content

Kirby 5.0.4

Mime::isAccepted()

Tests if a given MIME type is matched by an Accept header pattern; returns true if the MIME type is contained at all

Mime::isAccepted(string $mime, string $pattern): bool

Parameters

Name Type Default
$mimerequired string no default value
$patternrequired string no default value

Return type

bool

Parent class

Kirby\Filesystem\Mime