You are here

public static function GDToolkit::isAvailable in Drupal 9

Same name and namespace in other branches
  1. 8 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 412

Class

GDToolkit
Defines the GD2 toolkit for image manipulation within Drupal.

Namespace

Drupal\system\Plugin\ImageToolkit

Code

public static function isAvailable() {

  // GD2 support is available.
  return function_exists('imagegd2');
}