function TestToolkit::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
File
- 
              core/
modules/ system/ tests/ modules/ image_test/ src/ Plugin/ ImageToolkit/ TestToolkit.php, line 238  
Class
- TestToolkit
 - Defines a Test toolkit for image manipulation within Drupal.
 
Namespace
Drupal\image_test\Plugin\ImageToolkitCode
public static function getSupportedExtensions() {
  $extensions = [];
  foreach (static::supportedTypes() as $image_type) {
    $extensions[] = mb_strtolower(image_type_to_extension($image_type, FALSE));
  }
  return $extensions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.