protected function VendorHardeningPlugin::getInstalledPackages in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstalledPackages()
- 9 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();
}