function MimeTypeMapInterface::removeMapping
Removes the mapping between a MIME type and an extension.
Parameters
string $mimetype: The MIME type to be removed from the mapping.
string $extension: The extension to be removed from the mapping.
Return value
bool TRUE if the extension was present, FALSE otherwise.
File
-
core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeMapInterface.php, line 35
Class
- MimeTypeMapInterface
- Provides an interface for MIME type to file extension mapping.
Namespace
Drupal\Core\File\MimeTypeCode
public function removeMapping(string $mimetype, string $extension) : bool;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.