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

Breadcrumb

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

function PluginManager::deactivateInstalledPlugins

Deactivate all plugins from currently installed plugin packages

File

vendor/composer/composer/src/Composer/Plugin/PluginManager.php, line 114

Class

PluginManager
Plugin manager

Namespace

Composer\Plugin

Code

public function deactivateInstalledPlugins() : void {
    if (!$this->arePluginsDisabled('local')) {
        $repo = $this->composer
            ->getRepositoryManager()
            ->getLocalRepository();
        $this->deactivateRepository($repo, false);
    }
    if ($this->globalComposer !== null && !$this->arePluginsDisabled('global')) {
        $this->deactivateRepository($this->globalComposer
            ->getRepositoryManager()
            ->getLocalRepository(), true);
    }
}

API Navigation

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