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

Breadcrumb

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

class Plugin

Same name in this branch
  1. 11.1.x vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php \PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin
  2. 11.1.x vendor/phpstan/extension-installer/src/Plugin.php \PHPStan\ExtensionInstaller\Plugin
  3. 11.1.x vendor/php-http/discovery/src/Composer/Plugin.php \Http\Discovery\Composer\Plugin
  4. 11.1.x vendor/tbachert/spi/src/Composer/Plugin.php \Nevay\SPI\Composer\Plugin
  5. 11.1.x composer/Plugin/Scaffold/Plugin.php \Drupal\Composer\Plugin\Scaffold\Plugin
  6. 11.1.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin
  7. 11.1.x core/lib/Drupal/Component/Plugin/Attribute/Plugin.php \Drupal\Component\Plugin\Attribute\Plugin

Hierarchy

  • class \Composer\Installers\Plugin implements \Composer\Plugin\PluginInterface

Expanded class hierarchy of Plugin

14 string references to 'Plugin'
Action::create in core/modules/system/src/Entity/Action.php
Constructs a new entity object, without permanently saving it.
block.schema.yml in core/modules/block/config/schema/block.schema.yml
core/modules/block/config/schema/block.schema.yml
DisplayPluginBase::calculateCacheMetadata in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Calculates the display's cache metadata by inspecting each handler/plugin.
DisplayPluginBase::getAllPlugins in core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
Gets all the plugins used by the display.
EntityBlock::getEntityId in core/modules/block/src/Plugin/migrate/destination/EntityBlock.php
Gets the entity ID of the row.

... See full list

File

vendor/composer/installers/src/Composer/Installers/Plugin.php, line 9

Namespace

Composer\Installers
View source
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 {
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
Plugin::$installer private property @var Installer
Plugin::activate public function Apply plugin modifications to Composer Overrides PluginInterface::activate
Plugin::deactivate public function Remove any hooks from Composer Overrides PluginInterface::deactivate
Plugin::uninstall public function Prepare the plugin to be uninstalled Overrides PluginInterface::uninstall
PluginInterface::PLUGIN_API_VERSION public constant Version number of the internal composer-plugin-api package

API Navigation

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