function Tar::getArchive

Same name in other branches
  1. 9 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar::getArchive()
  2. 8.9.x core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar::getArchive()
  3. 10 core/lib/Drupal/Core/Archiver/Tar.php \Drupal\Core\Archiver\Tar::getArchive()

Retrieves the tar engine itself.

In some cases it may be necessary to directly access the underlying ArchiveTar object for implementation-specific logic. This is for advanced use only as it is not shared by other implementations of ArchiveInterface.

Return value

ArchiveTar The ArchiveTar object used by this object.

File

core/lib/Drupal/Core/Archiver/Tar.php, line 94

Class

Tar
Defines an archiver implementation for .tar files.

Namespace

Drupal\Core\Archiver

Code

public function getArchive() {
    return $this->tar;
}

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