You are here

public function PackageManager::getInstalledPackages in Composer Manager 8

Returns the installed packages.

Return value

array The installed packages, loaded from vendor/composer/installed.json.

Overrides PackageManagerInterface::getInstalledPackages

2 calls to PackageManager::getInstalledPackages()
PackageManager::getExtensionPackages in src/PackageManager.php
Returns the extension packages.
PackageManager::getRequiredPackages in src/PackageManager.php
Returns the required packages.

File

src/PackageManager.php, line 96

Class

PackageManager
Manages composer packages.

Namespace

Drupal\composer_manager

Code

public function getInstalledPackages() {
  if (!isset($this->packages['installed'])) {
    $this->packages['installed'] = JsonFile::read($this->root . '/vendor/composer/installed.json');
  }
  return $this->packages['installed'];
}