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

Breadcrumb

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

function RepositoryInterface::getProviders

Returns a list of packages providing a given package name

Packages which have the same name as $packageName should not be returned, only those that have a "provide" on it.

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

Parameters

string $packageName package name which must be provided:

Return value

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

3 methods override RepositoryInterface::getProviders()
ArrayRepository::getProviders in vendor/composer/composer/src/Composer/Repository/ArrayRepository.php
@inheritDoc
CompositeRepository::getProviders in vendor/composer/composer/src/Composer/Repository/CompositeRepository.php
@inheritDoc
FilterRepository::getProviders in vendor/composer/composer/src/Composer/Repository/FilterRepository.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/RepositoryInterface.php, line 109

Class

RepositoryInterface
Repository interface.

Namespace

Composer\Repository

Code

public function getProviders(string $packageName);

API Navigation

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