UpdateTestArchiver.php

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

Namespace

Drupal\update_test\Plugin\Archiver

File

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

View source
<?php

declare (strict_types=1);
namespace Drupal\update_test\Plugin\Archiver;

use Drupal\Core\Archiver\ArchiverInterface;
use Drupal\Core\Archiver\Attribute\Archiver;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Defines a test archiver implementation.
 */
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 [];
    }

}

Classes

Title Deprecated Summary
UpdateTestArchiver Defines a test archiver implementation.

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