class Plugin
Same name in this branch
- 11.1.x vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php \PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer\Plugin
- 11.1.x vendor/phpstan/extension-installer/src/Plugin.php \PHPStan\ExtensionInstaller\Plugin
- 11.1.x vendor/php-http/discovery/src/Composer/Plugin.php \Http\Discovery\Composer\Plugin
- 11.1.x vendor/tbachert/spi/src/Composer/Plugin.php \Nevay\SPI\Composer\Plugin
- 11.1.x composer/Plugin/Scaffold/Plugin.php \Drupal\Composer\Plugin\Scaffold\Plugin
- 11.1.x core/lib/Drupal/Component/Annotation/Plugin.php \Drupal\Component\Annotation\Plugin
- 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.
File
-
vendor/
composer/ installers/ src/ Composer/ Installers/ Plugin.php, line 9
Namespace
Composer\InstallersView 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 |