function MimeTypeMap::hasExtension
File
-
core/
lib/ Drupal/ Core/ File/ MimeType/ MimeTypeMap.php, line 959
Class
- MimeTypeMap
- Provides a sensible mapping between filename extensions and MIME types.
Namespace
Drupal\Core\File\MimeTypeCode
public function hasExtension(string $extension) : bool {
return isset($this->mapping['extensions'][strtolower($extension)]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.