function Interpolator::__construct
Same name and namespace in other branches
- 10 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
- 11.x composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
- 9 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
- 8.9.x composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::__construct()
Interpolator constructor.
Parameters
string $startToken: The start marker for a token, e.g. '['.
string $endToken: The end marker for a token, e.g. ']'.
File
-
composer/
Plugin/ Scaffold/ Interpolator.php, line 27
Class
- Interpolator
- Injects config values from an associative array into a string.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function __construct(protected $startToken = '\\[', protected $endToken = '\\]') {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.