You are here

public static function JqueryColorPicker::isAvailable in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/image_effects/ColorSelector/JqueryColorPicker.php \Drupal\image_effects\Plugin\image_effects\ColorSelector\JqueryColorPicker::isAvailable()
  2. 8 src/Plugin/image_effects/ColorSelector/JqueryColorPicker.php \Drupal\image_effects\Plugin\image_effects\ColorSelector\JqueryColorPicker::isAvailable()

Determines if plugin can be used.

Return value

bool TRUE if the plugin is available.

Overrides ImageEffectsPluginBase::isAvailable

File

src/Plugin/image_effects/ColorSelector/JqueryColorPicker.php, line 37

Class

JqueryColorPicker
JQuery Colorpicker color selector plugin.

Namespace

Drupal\image_effects\Plugin\image_effects\ColorSelector

Code

public static function isAvailable() {
  return \Drupal::service('module_handler')
    ->moduleExists('jquery_colorpicker');
}