Visitor::accepts PHP Méthode

accepts() public static méthode

Returns whether a specified MIME type is accepted by the visitor's browser
public static accepts ( string $type ) : boolean
$type string MIME type like "text/html"
Résultat boolean
    public static function accepts($type)
    {
        return static::acceptance($type) > 0;
    }