class Tar
Same name in this branch
- 9 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar
Same name and namespace in other branches
- 8.9.x core/modules/system/src/Plugin/Archiver/Tar.php \Drupal\system\Plugin\Archiver\Tar
- 8.9.x core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar
- 10 core/modules/system/src/Plugin/Archiver/Tar.php \Drupal\system\Plugin\Archiver\Tar
- 10 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar
- 11.x core/modules/system/src/Plugin/Archiver/Tar.php \Drupal\system\Plugin\Archiver\Tar
- 11.x core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\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
- class \Drupal\Core\Archiver\Tar extends \Drupal\Core\Archiver\ArchiverInterface
- class \Drupal\system\Plugin\Archiver\Tar implements \Drupal\Core\Archiver\Tar
Expanded class hierarchy of Tar
3 string references to 'Tar'
- ExtensionViewsFieldTest::testFileExtensionTarOption in core/
modules/ file/ tests/ src/ Kernel/ Views/ ExtensionViewsFieldTest.php - Tests file extension views field handler extension_detect_tar option.
- FileEntityFormatterTest::testFormatterFileExtension in core/
modules/ file/ tests/ src/ Kernel/ Formatter/ FileEntityFormatterTest.php - Tests the file_extension field formatter.
- FileExtensionFormatter::viewValue in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileExtensionFormatter.php - Generate the output appropriate for one field item.
File
-
core/
modules/ system/ src/ Plugin/ Archiver/ Tar.php, line 17
Namespace
Drupal\system\Plugin\ArchiverView source
class Tar extends BaseTar {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.