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

Breadcrumb

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

function Installer::extractPlatformRequirements

Parameters

Link[] $links:

Return value

array<string, string>

1 call to Installer::extractPlatformRequirements()
Installer::doUpdate in vendor/composer/composer/src/Composer/Installer.php
@phpstan-return self::ERROR_*

File

vendor/composer/composer/src/Composer/Installer.php, line 1055

Class

Installer
@author Jordi Boggiano <j.boggiano@seld.be> @author Beau Simensen <beau@dflydev.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de>

Namespace

Composer

Code

private function extractPlatformRequirements(array $links) : array {
    $platformReqs = [];
    foreach ($links as $link) {
        if (PlatformRepository::isPlatformPackage($link->getTarget())) {
            $platformReqs[$link->getTarget()] = $link->getPrettyConstraint();
        }
    }
    return $platformReqs;
}

API Navigation

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