Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ScaffoldFilePath.php

function ScaffoldFilePath::getInterpolator

Interpolate a string using the data from this scaffold file info.

Parameters

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 value

\Drupal\Composer\Plugin\Scaffold\Interpolator An interpolator for making string replacements.

File

composer/Plugin/Scaffold/ScaffoldFilePath.php, line 196

Class

ScaffoldFilePath
Manage the path to a file to scaffold.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

public function getInterpolator($name_prefix = '') {
    $interpolator = new Interpolator();
    $this->addInterpolationData($interpolator, $name_prefix);
    return $interpolator;
}
RSS feed
Powered by Drupal