Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / ConverterInterface.php
diff --git a/web/modules/contrib/drupalmoduleupgrader/src/ConverterInterface.php b/web/modules/contrib/drupalmoduleupgrader/src/ConverterInterface.php
new file mode 100644 (file)
index 0000000..59484b8
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\drupalmoduleupgrader;
+
+/**
+ * Interface implemented by all plugins which can modify a Drupal 7 module and
+ * convert part of it to Drupal 8.
+ */
+interface ConverterInterface {
+
+  /**
+   * Returns if this conversion applies to the target module. If FALSE,
+   * the convert() method will not be called.
+   *
+   * @param TargetInterface $target
+   *  The target module.
+   *
+   * @return boolean
+   */
+  public function isExecutable(TargetInterface $target);
+
+  /**
+   * Performs required conversions.
+   *
+   * @param TargetInterface $target
+   *  The target module to convert.
+   */
+  public function convert(TargetInterface $target);
+
+}