public static function GDToolkit::isAvailable in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php \Drupal\system\Plugin\ImageToolkit\GDToolkit::isAvailable()
Verifies that the Image Toolkit is set up correctly.
Return value
bool TRUE if the toolkit is available on this machine, FALSE otherwise.
Overrides ImageToolkitInterface::isAvailable
File
- core/
modules/ system/ src/ Plugin/ ImageToolkit/ GDToolkit.php, line 408
Class
- GDToolkit
- Defines the GD2 toolkit for image manipulation within Drupal.
Namespace
Drupal\system\Plugin\ImageToolkitCode
public static function isAvailable() {
// GD2 support is available.
return function_exists('imagegd2');
}