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

Breadcrumb

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

function InstallationManager::disablePlugins

Disables plugins.

We prevent any plugins from being instantiated by disabling the PluginManager. This ensures that no third-party code is ever executed.

File

vendor/composer/composer/src/Composer/Installer/InstallationManager.php, line 101

Class

InstallationManager
Package operation manager.

Namespace

Composer\Installer

Code

public function disablePlugins() : void {
    foreach ($this->installers as $i => $installer) {
        if (!$installer instanceof PluginInstaller) {
            continue;
        }
        $installer->disablePlugins();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal