function hook_archiver_info_alter

Alter archiver information declared by other modules.

Parameters

array $info: An associative array of archivers, keyed by archiver ID. Each value consists of the plugin definition for that archiver.

See also

\Drupal\Core\Archiver\ArchiverManager

\Drupal\Core\Archiver\Attribute\Archiver

Related topics

1 function implements hook_archiver_info_alter()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

SystemHooks::archiverInfoAlter in core/modules/system/src/Hook/SystemHooks.php
Implements hook_archiver_info_alter().
1 invocation of hook_archiver_info_alter()
ArchiverManager::__construct in core/lib/Drupal/Core/Archiver/ArchiverManager.php
Constructs an ArchiverManager object.

File

core/lib/Drupal/Core/File/file.api.php, line 147

Code

function hook_archiver_info_alter(&$info) {
  $info['tar']['extensions'][] = 'tgz';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.