function Zip::getArchive

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

Retrieves the zip engine itself.

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

Return value

\ZipArchive The ZipArchive object used by this object.

File

core/lib/Drupal/Core/Archiver/Zip.php, line 89

Class

Zip
Defines an archiver implementation for .zip files.

Namespace

Drupal\Core\Archiver

Code

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

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