function Zip::add
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::add()
- 10 core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::add()
- 11.x core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip::add()
Overrides ArchiverInterface::add
File
-
core/
lib/ Drupal/ Core/ Archiver/ Zip.php, line 39
Class
- Zip
- Defines an archiver implementation for .zip files.
Namespace
Drupal\Core\ArchiverCode
public function add($file_path) {
$this->zip
->addFile($file_path);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.