$file->is($value)

Checks if a file is of a certain type

  • $value (string)
    An extension or mime type
  • return (boolean)

This documentation entry is inherited from the Media class.