Skip to content

Kirby 4.5.0

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
$mime * string
$pattern * string

Return type

bool

Parent class

Kirby\Filesystem\Mime