ExtensionMimeTypeGuesser

Makes possible to guess the MIME type of a file using its extension.

Hierarchy

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.
doc_Drupal
2016-10-29 09:09:46
Comments
Leave a Comment

Please login to continue.