public ExtensionMimeTypeGuesser::setMapping(array $mapping = NULL)
Sets the mimetypes/extension mapping to use when guessing mimetype.
Parameters
array|null $mapping: Passing a NULL mapping will cause guess() to use self::$defaultMapping.
File
- core/lib/Drupal/Core/File/MimeType/ExtensionMimeTypeGuesser.php, line 924
Class
- ExtensionMimeTypeGuesser
- Makes possible to guess the MIME type of a file using its extension.
Namespace
Drupal\Core\File\MimeType
Code
public function setMapping(array $mapping = NULL) { $this->mapping = $mapping; }
Please login to continue.