class UpdateTestArchiver in Zircon Profile 8
Same name and namespace in other branches
- 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
- class \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver implements ArchiverInterface
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\ArchiverView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UpdateTestArchiver:: |
public | function |
Adds the specified file or directory to the archive. Overrides ArchiverInterface:: |
|
UpdateTestArchiver:: |
public | function |
Extracts multiple files in the archive to the specified path. Overrides ArchiverInterface:: |
|
UpdateTestArchiver:: |
public | function |
Lists all files in the archive. Overrides ArchiverInterface:: |
|
UpdateTestArchiver:: |
public | function |
Removes the specified file from the archive. Overrides ArchiverInterface:: |