function SystemHooks::archiverInfoAlter
Same name and namespace in other branches
- 11.x core/modules/system/src/Hook/SystemHooks.php \Drupal\system\Hook\SystemHooks::archiverInfoAlter()
Implements hook_archiver_info_alter().
Attributes
#[Hook('archiver_info_alter')]
File
-
core/
modules/ system/ src/ Hook/ SystemHooks.php, line 493
Class
- SystemHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
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.