visitor::accepts($type)

Returns whether a specified MIME type is accepted by the visitor's browser

  • since: Kirby 2.4.0
  • $type (string)
    MIME type like "text/html"
  • return (boolean)