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

Breadcrumb

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

function SystemHooks::archiverInfoAlter

Implements hook_archiver_info_alter().

File

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

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']);
    }
}
RSS feed
Powered by Drupal