You are here

public static function Plugin::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/Scaffold/Plugin.php \Drupal\Composer\Plugin\Scaffold\Plugin::getSubscribedEvents()
  2. 9 composer/Plugin/Scaffold/Plugin.php \Drupal\Composer\Plugin\Scaffold\Plugin::getSubscribedEvents()

File

composer/Plugin/Scaffold/Plugin.php, line 85

Class

Plugin
Composer plugin for handling drupal scaffold.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public static function getSubscribedEvents() {

  // Important note: We only instantiate our handler on "post" events.
  return [
    ScriptEvents::POST_UPDATE_CMD => 'postCmd',
    ScriptEvents::POST_INSTALL_CMD => 'postCmd',
    PackageEvents::POST_PACKAGE_INSTALL => 'postPackage',
    PluginEvents::COMMAND => 'onCommand',
  ];
}