public function Collection::inject

Inject configuration settings into an input string

Parameters

string $input Input to inject:

Return value

string

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php, line 356

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function inject($input) {

  // Only perform the preg callback if needed
  return strpos($input, '{') === false ? $input : preg_replace_callback('/{\\s*([A-Za-z_\\-\\.0-9]+)\\s*}/', array(
    $this,
    'getPregMatchValue',
  ), $input);
}