Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. VendorHardeningPlugin.php

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 255

Class

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

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal