ArchiverManager::__construct

public ArchiverManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs a ArchiverManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerInterface $module_

ArchiverManager::getInstance

public ArchiverManager::getInstance(array $options) Gets a preconfigured instance of a plugin. Parameters array $options: An array of options that can be used to determine a suitable plugin to instantiate and how to configure it. Return value object|false A fully configured plugin instance. The interface of the plugin instance will depends on the plugin type. If no instance can be retrieved, FALSE will be returned. Overrides PluginManagerBase::getInstance File core/lib/Drupal/Core/Archiver/Ar

ArchiverManager::createInstance

public ArchiverManager::createInstance($plugin_id, array $configuration = array()) Creates a pre-configured instance of a plugin. Parameters string $plugin_id: The ID of the plugin being instantiated. array $configuration: An array of configuration relevant to the plugin instance. Return value object A fully configured plugin instance. Throws \Drupal\Component\Plugin\Exception\PluginException If the instance cannot be created, such as if the ID is invalid. Overrides PluginManagerBase::create

ArchiverManager

Provides an Archiver plugin manager. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Archiver\ArchiverManager See also \Drupal\Core\Archiver\Annotation\Archiver \Drupal\Core\Archiver\ArchiverInterface Plugin API File core/lib/

ArchiverInterface::remove

public ArchiverInterface::remove($path) Removes the specified file from the archive. Parameters string $path: The file name relative to the root of the archive to remove. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. File core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 35 Class ArchiverInterface Defines the common interface for all Archiver classes. Namespace Drupal\Core\Archiver Code public function remove($path);

ArchiverInterface::listContents

public ArchiverInterface::listContents() Lists all files in the archive. Return value array An array of file names relative to the root of the archive. File core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 58 Class ArchiverInterface Defines the common interface for all Archiver classes. Namespace Drupal\Core\Archiver Code public function listContents();

ArchiverInterface::extract

public ArchiverInterface::extract($path, array $files = array()) Extracts multiple files in the archive to the specified path. Parameters string $path: A full system path of the directory to which to extract files. array $files: Optionally specify a list of files to be extracted. Files are relative to the root of the archive. If not specified, all files in the archive will be extracted. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. File core/lib/Drupal/Core/Archiver/

ArchiverInterface::add

public ArchiverInterface::add($file_path) 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. 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 f

ArchiverInterface

Defines the common interface for all Archiver classes. Hierarchy interface \Drupal\Core\Archiver\ArchiverInterface See also \Drupal\Core\Archiver\ArchiverManager \Drupal\Core\Archiver\Annotation\Archiver Plugin API File core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 12 Namespace Drupal\Core\Archiver Members Name Modifiers Type Description ArchiverInterface::add public function Adds the specified file or directory to the archive. ArchiverInterface::extract

ArchiverException

Defines an exception class for Drupal\Core\Archiver\ArchiverInterface. Hierarchy class \Drupal\Core\Archiver\ArchiverException extends \Exception File core/lib/Drupal/Core/Archiver/ArchiverException.php, line 8 Namespace Drupal\Core\Archiver Members