Version 1
[yaffs-website] / web / core / modules / system / tests / modules / image_test / src / Plugin / ImageToolkit / BrokenToolkit.php
diff --git a/web/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/BrokenToolkit.php b/web/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/BrokenToolkit.php
new file mode 100644 (file)
index 0000000..d5b9df4
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\image_test\Plugin\ImageToolkit;
+
+/**
+ * Defines a Test toolkit for image manipulation within Drupal.
+ *
+ * @ImageToolkit(
+ *   id = "broken",
+ *   title = @Translation("A dummy toolkit that is broken")
+ * )
+ */
+class BrokenToolkit extends TestToolkit {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function isAvailable() {
+    return FALSE;
+  }
+
+}