public function 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

drupal/core/lib/Drupal/Component/Archiver/Zip.php, line 96
Definition of Drupal\Component\Archiver\Zip.

Class

Zip
Defines a archiver implementation for .zip files.

Namespace

Drupal\Component\Archiver

Code

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