summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php')
-rw-r--r--core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php b/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php
new file mode 100644
index 0000000..63d3461
--- /dev/null
+++ b/core/modules/system/tests/modules/image_test/lib/Drupal/image_test/Plugin/system/imagetoolkit/BrokenToolkit.php
@@ -0,0 +1,29 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\image_test\Plugin\system\imagetoolkit\BrokenToolkit.
+ */
+
+namespace Drupal\image_test\Plugin\system\imagetoolkit;
+
+use Drupal\Component\Annotation\Plugin;
+use Drupal\Core\Annotation\Translation;
+
+/**
+ * Defines a Test toolkit for image manipulation within Drupal.
+ *
+ * @Plugin(
+ * id = "broken",
+ * title = @Translation("A dummy toolkit that is broken")
+ * )
+ */
+class BrokenToolkit extends TestToolkit {
+
+ /**
+ * Implements \Drupal\system\Plugin\ImageToolkitInterface::isAvailable().
+ */
+ public static function isAvailable() {
+ return FALSE;
+ }
+}