view core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php @ 9:1fc0ff908d1f

Add another data file
author Chris Cannam
date Mon, 05 Feb 2018 12:34:32 +0000
parents 4c8ae668cc8c
children
line wrap: on
line source
<?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 [];
  }

}