You are here

public function ArchiverInterface::add in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Archiver/ArchiverInterface.php \Drupal\Core\Archiver\ArchiverInterface::add()

Adds the specified file or directory to the archive.

Parameters

string $file_path: The full system path of the file or directory to add. Only local files and directories are supported.

Return value

\Drupal\Core\Archiver\ArchiverInterface The called object.

3 methods override ArchiverInterface::add()
Tar::add in core/lib/Drupal/Core/Archiver/Tar.php
Adds the specified file or directory to the archive.
UpdateTestArchiver::add in core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php
Adds the specified file or directory to the archive.
Zip::add in core/lib/Drupal/Core/Archiver/Zip.php
Adds the specified file or directory to the archive.

File

core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 29
Contains \Drupal\Core\Archiver\ArchiverInterface.

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Core\Archiver

Code

public function add($file_path);