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

Breadcrumb

  1. Drupal Core 11.1.x

Plugin.php

Same filename in this branch
  1. 11.1.x vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php
  2. 11.1.x vendor/phpstan/extension-installer/src/Plugin.php
  3. 11.1.x vendor/php-http/discovery/src/Composer/Plugin.php
  4. 11.1.x vendor/tbachert/spi/src/Composer/Plugin.php
  5. 11.1.x composer/Plugin/Scaffold/Plugin.php
  6. 11.1.x core/lib/Drupal/Component/Annotation/Plugin.php
  7. 11.1.x core/lib/Drupal/Component/Plugin/Attribute/Plugin.php

Namespace

Composer\Installers

File

vendor/composer/installers/src/Composer/Installers/Plugin.php

View source
<?php

namespace Composer\Installers;

use Composer\Composer;
use Composer\IO\IOInterface;
use Composer\Plugin\PluginInterface;
class Plugin implements PluginInterface {
    
    /** @var Installer */
    private $installer;
    public function activate(Composer $composer, IOInterface $io) : void {
        $this->installer = new Installer($io, $composer);
        $composer->getInstallationManager()
            ->addInstaller($this->installer);
    }
    public function deactivate(Composer $composer, IOInterface $io) : void {
        $composer->getInstallationManager()
            ->removeInstaller($this->installer);
    }
    public function uninstall(Composer $composer, IOInterface $io) : void {
    }

}

Classes

Title Deprecated Summary
Plugin

API Navigation

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