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

Breadcrumb

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

function Decisions::toString

1 call to Decisions::toString()
Decisions::__toString in vendor/composer/composer/src/Composer/DependencyResolver/Decisions.php

File

vendor/composer/composer/src/Composer/DependencyResolver/Decisions.php, line 216

Class

Decisions
Stores decisions on installing, removing or keeping packages

Namespace

Composer\DependencyResolver

Code

public function toString(?Pool $pool = null) : string {
    $decisionMap = $this->decisionMap;
    ksort($decisionMap);
    $str = '[';
    foreach ($decisionMap as $packageId => $level) {
        $str .= ($pool !== null ? $pool->literalToPackage($packageId) : $packageId) . ':' . $level . ',';
    }
    $str .= ']';
    return $str;
}

API Navigation

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