public function Interpolator::__construct in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
- 9 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
Interpolator constructor.
Parameters
string $start_token: The start marker for a token, e.g. '['.
string $end_token: The end marker for a token, e.g. ']'.
File
- composer/
Plugin/ Scaffold/ Interpolator.php, line 41
Class
- Interpolator
- Injects config values from an associative array into a string.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function __construct($start_token = '\\[', $end_token = '\\]') {
$this->startToken = $start_token;
$this->endToken = $end_token;
}