You are here

class Tar in Drupal 9

Same name in this branch
  1. 9 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar
  2. 9 core/modules/system/src/Plugin/Archiver/Tar.php \Drupal\system\Plugin\Archiver\Tar
Same name and namespace in other branches
  1. 8 core/modules/system/src/Plugin/Archiver/Tar.php \Drupal\system\Plugin\Archiver\Tar

Defines an archiver implementation for .tar files.

Plugin annotation


@Archiver(
  id = "Tar",
  title = @Translation("Tar"),
  description = @Translation("Handles .tar files."),
  extensions = {"tar", "tgz", "tar.gz", "tar.bz2"}
)

Hierarchy

Expanded class hierarchy of Tar

File

core/modules/system/src/Plugin/Archiver/Tar.php, line 17

Namespace

Drupal\system\Plugin\Archiver
View source
class Tar extends BaseTar {

}

Members

Namesort descending Modifiers Type Description Overrides
Tar::$tar protected property The underlying ArchiveTar instance that does the heavy lifting.
Tar::add public function Adds the specified file or directory to the archive. Overrides ArchiverInterface::add
Tar::extract public function Extracts multiple files in the archive to the specified path. Overrides ArchiverInterface::extract
Tar::getArchive public function Retrieves the tar engine itself.
Tar::listContents public function Lists all files in the archive. Overrides ArchiverInterface::listContents
Tar::remove public function Removes the specified file from the archive. Overrides ArchiverInterface::remove
Tar::__construct public function Constructs a Tar object.