ExtensionMimeTypeGuesser::setMapping

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;
}
doc_Drupal
2016-10-29 09:09:47
Comments
Leave a Comment

Please login to continue.