You are here

interface MimeDetectServiceInterface in MimeDetect 8

MimeDetect service.

Hierarchy

Expanded class hierarchy of MimeDetectServiceInterface

All classes that implement MimeDetectServiceInterface

File

src/MimeDetectServiceInterface.php, line 10

Namespace

Drupal\mimedetect
View source
interface MimeDetectServiceInterface {

  /**
   * Get the MIME type for a given file.
   *
   * @param \Drupal\file\FileInterface $file
   *   The file to be analyzed.
   *
   * @return string
   *   The detected MIME type for the given file.
   */
  public function getMime(FileInterface $file);

}

Members

Namesort descending Modifiers Type Description Overrides
MimeDetectServiceInterface::getMime public function Get the MIME type for a given file. 1