class UpdateTestArchiver in Drupal 9
Same name and namespace in other branches
- 8 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 16
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 = []) {
return $this;
}
/**
* {@inheritdoc}
*/
public function listContents() {
return [];
}
}
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:: |