class UpdateTestArchiver

Same name in other branches
  1. 9 core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver
  2. 8.9.x core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver
  3. 10 core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver

Defines a test archiver implementation.

Hierarchy

Expanded class hierarchy of UpdateTestArchiver

File

core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php, line 14

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 = []) {
        return $this;
    }
    
    /**
     * {@inheritdoc}
     */
    public function listContents() {
        return [];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.