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 Overrides ArchiverInterface::add
UpdateTestArchiver::extract public function Overrides ArchiverInterface::extract
UpdateTestArchiver::listContents public function Overrides ArchiverInterface::listContents
UpdateTestArchiver::remove public function Overrides ArchiverInterface::remove

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