You are here

public static function GDToolkit::isAvailable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 390
Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.

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');
}