class Tar

Same name in this branch

Defines a archiver implementation for .tar files.

Plugin annotation


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

Hierarchy

Expanded class hierarchy of Tar

File

drupal/core/modules/system/lib/Drupal/system/Plugin/Archiver/Tar.php, line 24
Contains \Drupal\system\Plugin\Core\Archiver\Tar.

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 Implements Drupal\Component\Archiver\ArchiveInterface::add(). Overrides ArchiverInterface::add
Tar::extract public function Implements Drupal\Component\Archiver\ArchiveInterface::extract(). Overrides ArchiverInterface::extract
Tar::getArchive public function Retrieves the tar engine itself.
Tar::listContents public function Implements Drupal\Component\Archiver\ArchiveInterface::listContents(). Overrides ArchiverInterface::listContents
Tar::remove public function Implements Drupal\Component\Archiver\ArchiveInterface::remove(). Overrides ArchiverInterface::remove
Tar::__construct public function Constructs a Tar object.