function VendorHardeningPlugin::getSubscribedEvents

Same name in other branches
  1. 8.9.x composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getSubscribedEvents()
  2. 10 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getSubscribedEvents()
  3. 11.x composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getSubscribedEvents()

File

composer/Plugin/VendorHardening/VendorHardeningPlugin.php, line 84

Class

VendorHardeningPlugin
A Composer plugin to clean out your project's vendor directory.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

public static function getSubscribedEvents() {
    return [
        ScriptEvents::POST_AUTOLOAD_DUMP => 'onPostAutoloadDump',
        ScriptEvents::POST_UPDATE_CMD => 'onPostCmd',
        ScriptEvents::POST_INSTALL_CMD => 'onPostCmd',
        PackageEvents::PRE_PACKAGE_INSTALL => 'onPrePackageInstall',
        PackageEvents::PRE_PACKAGE_UPDATE => 'onPrePackageUpdate',
        PackageEvents::POST_PACKAGE_INSTALL => 'onPostPackageInstall',
        PackageEvents::POST_PACKAGE_UPDATE => 'onPostPackageUpdate',
    ];
}

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