You are here

protected function VendorHardeningPlugin::getInstalledPackages in Drupal 9

Same name and namespace in other branches
  1. 8 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstalledPackages()
  2. 10 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 248

Class

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

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

protected function getInstalledPackages() {
  return $this->composer
    ->getRepositoryManager()
    ->getLocalRepository()
    ->getPackages();
}