interface MimeDetectServiceInterface in MimeDetect 8
MimeDetect service.
Hierarchy
- interface \Drupal\mimedetect\MimeDetectServiceInterface
Expanded class hierarchy of MimeDetectServiceInterface
All classes that implement MimeDetectServiceInterface
File
- src/
MimeDetectServiceInterface.php, line 10
Namespace
Drupal\mimedetectView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MimeDetectServiceInterface:: |
public | function | Get the MIME type for a given file. | 1 |