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

Breadcrumb

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

function CompositeRepository::getPackages

@inheritDoc

Overrides RepositoryInterface::getPackages

1 call to CompositeRepository::getPackages()
InstalledRepository::getDependents in vendor/composer/composer/src/Composer/Repository/InstalledRepository.php
Returns a list of links causing the requested needle packages to be installed, as an associative array with the dependent's name as key, and an array containing in order the PackageInterface and Link describing the relationship as values. If…

File

vendor/composer/composer/src/Composer/Repository/CompositeRepository.php, line 142

Class

CompositeRepository
Composite repository.

Namespace

Composer\Repository

Code

public function getPackages() : array {
    $packages = [];
    foreach ($this->repositories as $repository) {
        
        /* @var $repository RepositoryInterface */
        $packages[] = $repository->getPackages();
    }
    return $packages ? array_merge(...$packages) : [];
}
RSS feed
Powered by Drupal