You are here

public function UpdateTestArchiver::add in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver::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.

Overrides ArchiverInterface::add

File

core/modules/update/tests/modules/update_test/src/Plugin/Archiver/UpdateTestArchiver.php, line 26
Contains \Drupal\update_test\Plugin\Archiver\UpdateTestArchiver.

Class

UpdateTestArchiver
Defines a test archiver implementation.

Namespace

Drupal\update_test\Plugin\Archiver

Code

public function add($file_path) {
  return $this;
}