class DownloadsModifierPlugin

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/composer-plugin-downloads-modifier/src/DownloadsModifierPlugin.php \Drupal\Tests\fixture\Composer\Plugin\DownloadsModifier\DownloadsModifierPlugin

A do-nothing Composer plugin flagged with 'plugin-modifies-downloads'.

Composer moves the install operation of such a plugin in front of all other plugin operations. Tests use this to force a post-package-install event to fire before the Scaffold plugin's own update operation executes.

Hierarchy

  • class \Drupal\Tests\fixture\Composer\Plugin\DownloadsModifier\DownloadsModifierPlugin implements \Composer\Plugin\PluginInterface

Expanded class hierarchy of DownloadsModifierPlugin

See also

\Composer\DependencyResolver\Transaction::movePluginsToFront()

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/composer-plugin-downloads-modifier/src/DownloadsModifierPlugin.php, line 20

Namespace

Drupal\Tests\fixture\Composer\Plugin\DownloadsModifier
View source
class DownloadsModifierPlugin implements PluginInterface {
  
  /**
   * {@inheritdoc}
   */
  public function activate(Composer $composer, IOInterface $io) : void {
  }
  
  /**
   * {@inheritdoc}
   */
  public function deactivate(Composer $composer, IOInterface $io) : void {
  }
  
  /**
   * {@inheritdoc}
   */
  public function uninstall(Composer $composer, IOInterface $io) : void {
  }

}

Members

Title Sort descending Modifiers Object type Summary
DownloadsModifierPlugin::activate public function
DownloadsModifierPlugin::deactivate public function
DownloadsModifierPlugin::uninstall public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.