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

Breadcrumb

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

function SolverProblemsException::getExtensionProblems

Parameters

Rule[][] $reasonSets:

Return value

string[]

1 call to SolverProblemsException::getExtensionProblems()
SolverProblemsException::getPrettyString in vendor/composer/composer/src/Composer/DependencyResolver/SolverProblemsException.php

File

vendor/composer/composer/src/Composer/DependencyResolver/SolverProblemsException.php, line 134

Class

SolverProblemsException
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\DependencyResolver

Code

private function getExtensionProblems(array $reasonSets) : array {
    $missingExtensions = [];
    foreach ($reasonSets as $reasonSet) {
        foreach ($reasonSet as $rule) {
            $required = $rule->getRequiredPackage();
            if (null !== $required && 0 === strpos($required, 'ext-')) {
                $missingExtensions[$required] = 1;
            }
        }
    }
    return array_keys($missingExtensions);
}

API Navigation

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