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

Breadcrumb

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

function Pool::literalToPrettyString

Parameters

array<int, BasePackage> $installedMap:

File

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

Class

Pool
A package pool contains all packages for dependency resolution

Namespace

Composer\DependencyResolver

Code

public function literalToPrettyString(int $literal, array $installedMap) : string {
    $package = $this->literalToPackage($literal);
    if (isset($installedMap[$package->id])) {
        $prefix = $literal > 0 ? 'keep' : 'remove';
    }
    else {
        $prefix = $literal > 0 ? 'install' : 'don\'t install';
    }
    return $prefix . ' ' . $package->getPrettyString();
}

API Navigation

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