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

Breadcrumb

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

function Config::process

Replaces {$refs} inside a config string

Parameters

string|mixed $value a config string that can contain {$refs-to-other-config}:

int $flags Options (see class constants):

Return value

string|mixed

1 call to Config::process()
Config::get in vendor/composer/composer/src/Composer/Config.php
Returns a setting

File

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

Class

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

Namespace

Composer

Code

private function process($value, int $flags) {
    if (!is_string($value)) {
        return $value;
    }
    return Preg::replaceCallback('#\\{\\$(.+)\\}#', function ($match) use ($flags) {
        return $this->get($match[1], $flags);
    }, $value);
}
RSS feed
Powered by Drupal