function StorageReplaceDataWrapper::replaceData

Same name in other branches
  1. 8.9.x core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::replaceData()
  2. 10 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::replaceData()
  3. 11.x core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::replaceData()

Replaces the configuration object data with the supplied data.

Parameters

$name: The configuration object name whose data to replace.

array $data: The configuration data.

Return value

$this

File

core/modules/config/src/StorageReplaceDataWrapper.php, line 198

Class

StorageReplaceDataWrapper
Wraps a configuration storage to allow replacing specific configuration data.

Namespace

Drupal\config

Code

public function replaceData($name, array $data) {
    $this->replacementData[$this->collection][$name] = $data;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.