function MimeTypeMapInterface::getExtensionsForMimeType
Same name and namespace in other branches
- main core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php \Drupal\Core\File\MimeType\MimeTypeMapInterface::getExtensionsForMimeType()
Returns the appropriate extensions for a given MIME type.
Parameters
string $mimetype: A MIME type.
Return value
string[] An array of file extensions matching the MIME type, without leading dot.
File
-
core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeMapInterface.php, line 106
Class
- MimeTypeMapInterface
- Provides an interface for MIME type to file extension mapping.
Namespace
Drupal\Core\File\MimeTypeCode
public function getExtensionsForMimeType(string $mimetype) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.