public ExtensionMimeTypeGuesser::setMapping(array $mapping = NULL)
Sets the mimetypes/extension mapping to use when guessing mimetype.
array|null $mapping: Passing a NULL mapping will cause guess() to use self::$defaultMapping.
public function setMapping(array $mapping = NULL) { $this->mapping = $mapping; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!File!MimeType!ExtensionMimeTypeGuesser.php/function/ExtensionMimeTypeGuesser::setMapping/8.1.x