Reference

Guide

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

Return type

bool

Source code

kirby/src/Toolkit/Mime.php#L229