Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ArchiverInterface.php

function 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.

2 methods override ArchiverInterface::add()
Tar::add in core/lib/Drupal/Core/Archiver/Tar.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 24

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Core\Archiver

Code

public function add($file_path);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal