Implements Drupal\Component\Archiver\ArchiveInterface::add().
Overrides ArchiverInterface::add
File
- drupal/core/lib/Drupal/Component/Archiver/Zip.php, line 46
- Definition of Drupal\Component\Archiver\Zip.
Class
- Zip
- Defines a archiver implementation for .zip files.
Namespace
Drupal\Component\Archiver
Code
public function add($file_path) {
$this->zip
->addFile($file_path);
return $this;
}