Version 1
[yaffs-website] / web / core / modules / update / tests / modules / update_test / src / Plugin / Archiver / UpdateTestArchiver.php
diff --git a/web/core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php b/web/core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php
new file mode 100644 (file)
index 0000000..ffa4e46
--- /dev/null
@@ -0,0 +1,46 @@
+<?php
+
+namespace Drupal\update_test\Plugin\Archiver;
+
+use Drupal\Core\Archiver\ArchiverInterface;
+
+/**
+ * Defines a test archiver implementation.
+ *
+ * @Archiver(
+ *   id = "update_test_archiver",
+ *   title = @Translation("Update Test Archiver"),
+ *   extensions = {"update-test-extension"}
+ * )
+ */
+class UpdateTestArchiver implements ArchiverInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function add($file_path) {
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function remove($path) {
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function extract($path, array $files = []) {
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function listContents() {
+    return [];
+  }
+
+}