You are here

class UpdateTestArchiver in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver

Defines a test archiver implementation.

Plugin annotation


@Archiver(
  id = "update_test_archiver",
  title = @Translation("Update Test Archiver"),
  extensions = {"update-test-extension"}
)

Hierarchy

Expanded class hierarchy of UpdateTestArchiver

File

core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php, line 21
Contains \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver.

Namespace

Drupal\update_test\Plugin\Archiver
View source
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 = array()) {
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function listContents() {
    return array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
UpdateTestArchiver::add public function Adds the specified file or directory to the archive. Overrides ArchiverInterface::add
UpdateTestArchiver::extract public function Extracts multiple files in the archive to the specified path. Overrides ArchiverInterface::extract
UpdateTestArchiver::listContents public function Lists all files in the archive. Overrides ArchiverInterface::listContents
UpdateTestArchiver::remove public function Removes the specified file from the archive. Overrides ArchiverInterface::remove