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

Breadcrumb

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

function Pool::getRemovedVersions

Return value

array<string, string>

File

vendor/composer/composer/src/Composer/DependencyResolver/Pool.php, line 62

Class

Pool
A package pool contains all packages for dependency resolution

Namespace

Composer\DependencyResolver

Code

public function getRemovedVersions(string $name, ConstraintInterface $constraint) : array {
    if (!isset($this->removedVersions[$name])) {
        return [];
    }
    $result = [];
    foreach ($this->removedVersions[$name] as $version => $prettyVersion) {
        if ($constraint->matches(new Constraint('==', $version))) {
            $result[$version] = $prettyVersion;
        }
    }
    return $result;
}

API Navigation

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