function SystemHooks::archiverInfoAlter

Implements hook_archiver_info_alter().

Attributes

#[Hook('archiver_info_alter')]

File

core/modules/system/src/Hook/SystemHooks.php, line 530

Class

SystemHooks
Hook implementations for system.

Namespace

Drupal\system\Hook

Code

public function archiverInfoAlter(&$info) : void {
  if (!class_exists(\ZipArchive::class)) {
    // PHP Zip extension is missing.
    unset($info['Zip']);
  }
}

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