Visitor::accepts PHP Method

accepts() public static method

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"
return boolean
    public static function accepts($type)
    {
        return static::acceptance($type) > 0;
    }