Makes possible to guess the MIME type of a file using its extension.
Hierarchy
- class \Drupal\Core\File\MimeType\ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface
File
- core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php, line 11
Namespace
Drupal\Core\File\MimeType
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ExtensionMimeTypeGuesser::$defaultMapping | protected | property | Default MIME extension mapping. |
ExtensionMimeTypeGuesser::$mapping | protected | property | The MIME types mapping array after going through the module handler. |
ExtensionMimeTypeGuesser::$moduleHandler | protected | property | The module handler. |
ExtensionMimeTypeGuesser::guess | public | function | Guesses the mime type of the file with the given path. Overrides MimeTypeGuesserInterface::guess |
ExtensionMimeTypeGuesser::setMapping | public | function | Sets the mimetypes/extension mapping to use when guessing mimetype. |
ExtensionMimeTypeGuesser::__construct | public | function | Constructs a new ExtensionMimeTypeGuesser. |
Please login to continue.