public function addInterpolationData(Interpolator
$interpolator,
$name_prefix = ''
) { if (empty($name_prefix)) { $name_prefix =
$this->type;
} $data =
[ 'package-name' =>
$this->
packageName(),
"{
$name_prefix}-rel-path" =>
$this->
relativePath(),
"{
$name_prefix}-full-path" =>
$this->
fullPath(),
];
$interpolator->
addData($data);
} /**
* Interpolate a string using the data from this scaffold file info.
*
* @param string $name_prefix
* (optional) Prefix to add before -rel-path and -full-path item names.
* Defaults to path type provided when constructing this object.
*
* @return \Drupal\Composer\Plugin\Scaffold\Interpolator
* An interpolator for making string replacements.
*/