public function ImagemagickMimeTypeMapper::getMimeTypes in ImageMagick 8.2
Returns known MIME types.
Return value
string[] An array of MIME types.
Deprecated
in ImageMagick 8.x-2.4, will be removed in 8.x-3.0. Use FileEye\MimeMap\AbstractMap::listTypes() instead.
See also
https://www.drupal.org/project/imagemagick/issues/3026733
File
- src/
ImagemagickMimeTypeMapper.php, line 106
Class
- ImagemagickMimeTypeMapper
- Maps MIME types to file extensions.
Namespace
Drupal\imagemagickCode
public function getMimeTypes() {
@trigger_error(__METHOD__ . ' is deprecated in ImageMagick 8.x-2.4, will be removed in 8.x-3.0. Use FileEye\\MimeMap\\AbstractMap::listTypes() instead. See https://www.drupal.org/project/imagemagick/issues/3026733.', E_USER_DEPRECATED);
return array_values($this
->getMapping()['mimetypes']);
}