function 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\VendorHardening

Code

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.