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