class UpdateTestArchiver

Same name and namespace in other branches
  1. 11.x 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

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\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 [];
  }

}

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