function ArchiverInterface::remove

Same name in other branches
  1. 7.x includes/archiver.inc \ArchiverInterface::remove()
  2. 9 core/lib/Drupal/Core/Archiver/ArchiverInterface.php \Drupal\Core\Archiver\ArchiverInterface::remove()
  3. 10 core/lib/Drupal/Core/Archiver/ArchiverInterface.php \Drupal\Core\Archiver\ArchiverInterface::remove()
  4. 11.x core/lib/Drupal/Core/Archiver/ArchiverInterface.php \Drupal\Core\Archiver\ArchiverInterface::remove()

Removes the specified file from the archive.

Parameters

string $path: The file name relative to the root of the archive to remove.

Return value

$this The called object.

3 methods override ArchiverInterface::remove()
Tar::remove in core/lib/Drupal/Core/Archiver/Tar.php
Removes the specified file from the archive.
UpdateTestArchiver::remove in core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php
Removes the specified file from the archive.
Zip::remove in core/lib/Drupal/Core/Archiver/Zip.php
Removes the specified file from the archive.

File

core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 35

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Core\Archiver

Code

public function remove($path);

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