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

Breadcrumb

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

function RepositorySet::getProviders

@phpstan-return array<string, array{name: string, description: string|null, type: string}>

Return value

array[] an array with the provider name as key and value of array('name' => '...', 'description' => '...', 'type' => '...')

File

vendor/composer/composer/src/Composer/Repository/RepositorySet.php, line 289

Class

RepositorySet
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\Repository

Code

public function getProviders(string $packageName) : array {
    $providers = [];
    foreach ($this->repositories as $repository) {
        if ($repoProviders = $repository->getProviders($packageName)) {
            $providers = array_merge($providers, $repoProviders);
        }
    }
    return $providers;
}
RSS feed
Powered by Drupal