public function FileExtensionGuesserInterface::guessByGeneralMimeType in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/FileExtensionGuesserInterface.php \Drupal\gutenberg\FileExtensionGuesserInterface::guessByGeneralMimeType()
Guesses all possible file extensions by general mime type.
Parameters
string $general_mime_type: General mime type (image, video, audio, ...).
Return value
array The mime types.
1 method overrides FileExtensionGuesserInterface::guessByGeneralMimeType()
- FileExtensionGuesser::guessByGeneralMimeType in src/
FileExtensionGuesser.php - Guesses all possible file extensions by general mime type.
File
- src/
FileExtensionGuesserInterface.php, line 21
Class
- FileExtensionGuesserInterface
- Guesses all possible file extensions by mime type.
Namespace
Drupal\gutenbergCode
public function guessByGeneralMimeType(string $general_mime_type);