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

Breadcrumb

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

function 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\Scaffold

Code

public function setData(array $data) {
    $this->data = $data;
    return $this;
}
RSS feed
Powered by Drupal