visitor::acceptance($type)
Returns a number between 0 and 1 that defines how "accepted" a specified MIME type is for the visitor's browser using the HTTP Accept header
- since: Kirby 2.4.0
-
$type (string)
MIME type like "text/html" -
return (int)
Number between 0 (not accepted) and 1 (very accepted)