public function Interpolator::setData in Drupal 10
Same name and namespace in other branches
- 8 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::setData()
- 9 composer/Plugin/Scaffold/Interpolator.php \Drupal\Composer\Plugin\Scaffold\Interpolator::setData()
Sets the data set to use when interpolating.
Parameters
array $data: The key:value pairs to use when interpolating.
Return value
$this
File
- composer/
Plugin/ Scaffold/ Interpolator.php, line 54
Class
- Interpolator
- Injects config values from an associative array into a string.
Namespace
Drupal\Composer\Plugin\ScaffoldCode
public function setData(array $data) {
$this->data = $data;
return $this;
}