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

Breadcrumb

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

function Config::setSourceOfConfigValue

Parameters

mixed $configValue:

3 calls to Config::setSourceOfConfigValue()
Config::get in vendor/composer/composer/src/Composer/Config.php
Returns a setting
Config::merge in vendor/composer/composer/src/Composer/Config.php
Merges new config values with the existing ones (overriding)
Config::__construct in vendor/composer/composer/src/Composer/Config.php

File

vendor/composer/composer/src/Composer/Config.php, line 501

Class

Config
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer

Code

private function setSourceOfConfigValue($configValue, string $path, string $source) : void {
    $this->sourceOfConfigValue[$path] = $source;
    if (is_array($configValue)) {
        foreach ($configValue as $key => $value) {
            $this->setSourceOfConfigValue($value, $path . '.' . $key, $source);
        }
    }
}
RSS feed
Powered by Drupal