function VendorHardeningPlugin::getInstalledPackages
Same name in other branches
- 9 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstalledPackages()
- 8.9.x composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstalledPackages()
- 11.x composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstalledPackages()
Gets a list of all installed packages from Composer.
Return value
\Composer\Package\PackageInterface[] The list of installed packages.
1 call to VendorHardeningPlugin::getInstalledPackages()
- VendorHardeningPlugin::cleanAllPackages in composer/
Plugin/ VendorHardening/ VendorHardeningPlugin.php - Clean all configured packages.
File
-
composer/
Plugin/ VendorHardening/ VendorHardeningPlugin.php, line 253
Class
- VendorHardeningPlugin
- A Composer plugin to clean out your project's vendor directory.
Namespace
Drupal\Composer\Plugin\VendorHardeningCode
protected function getInstalledPackages() {
return $this->composer
->getRepositoryManager()
->getLocalRepository()
->getPackages();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.