public function ArchiverInterface::add in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Archiver/ArchiverInterface.php \Drupal\Core\Archiver\ArchiverInterface::add()
- 9 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
$this The called object.
1 method overrides ArchiverInterface::add()
- UpdateTestArchiver::add in core/
modules/ update/ tests/ modules/ update_test/ src/ Plugin/ Archiver/ UpdateTestArchiver.php - Adds the specified file or directory to the archive.
File
- core/
lib/ Drupal/ Core/ Archiver/ ArchiverInterface.php, line 24
Class
- ArchiverInterface
- Defines the common interface for all Archiver classes.
Namespace
Drupal\Core\ArchiverCode
public function add($file_path);