function MimeTypeMapInterface::hasExtension
Same name and namespace in other branches
- main core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php \Drupal\Core\File\MimeType\MimeTypeMapInterface::hasExtension()
Determines if a file extension exists.
Parameters
string $extension: The file extension.
Return value
bool TRUE if the file extension exists, FALSE otherwise.
File
-
core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeMapInterface.php, line 84
Class
- MimeTypeMapInterface
- Provides an interface for MIME type to file extension mapping.
Namespace
Drupal\Core\File\MimeTypeCode
public function hasExtension(string $extension) : bool;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.