public static function ImagemagickToolkit::getSupportedExtensions in ImageMagick 8.3
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getSupportedExtensions()
- 8.2 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::getSupportedExtensions()
Returns a list of image file extensions supported by the toolkit.
Return value
array An array of supported image file extensions (e.g. png/jpeg/gif).
Overrides ImageToolkitInterface::getSupportedExtensions
2 calls to ImagemagickToolkit::getSupportedExtensions()
- ImagemagickToolkit::buildConfigurationForm in src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php - Form constructor.
- ImagemagickToolkit::getRequirements in src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php - Gets toolkit requirements in a format suitable for hook_requirements().
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 878
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public static function getSupportedExtensions() {
return \Drupal::service('imagemagick.format_mapper')
->getEnabledExtensions();
}