function Handler::onPostPackageEvent
Same name in other branches
- 8.9.x composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
- 10 composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
- 11.x composer/Plugin/Scaffold/Handler.php \Drupal\Composer\Plugin\Scaffold\Handler::onPostPackageEvent()
Posts package command event.
We want to detect packages 'require'd that have scaffold files, but are not yet allowed in the top-level composer.json file.
Parameters
\Composer\Installer\PackageEvent $event: Composer package event sent on install/update/remove.
File
-
composer/
Plugin/ Scaffold/ Handler.php, line 104
Class
- Handler
- Core class of the plugin.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function onPostPackageEvent(PackageEvent $event) {
foreach ($this->postPackageListeners as $listener) {
$listener->event($event);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.