public function MimetypeService::getMimetypes in Search File Attachments 8
Returns a list of valid file mimetypes.
Return value
array The array of mimetypes, with the file extension as the array key.
1 call to MimetypeService::getMimetypes()
- MimetypeService::extensionToMimetype in src/
MimetypeService.php - Convert a file extension to the corresponding mimetype.
File
- src/
MimetypeService.php, line 124
Class
- MimetypeService
- Service that handles the mimetypes of file extensions.
Namespace
Drupal\search_file_attachmentsCode
public function getMimetypes() {
return $this->mimetypes;
}