You are here

public static function ConfigActionsTransform::change in Config Actions 8

Walk a tree and add change the value at the end of a path

Parameters

array $tree : A base on which to add the path:

array $path : An array of keys to walk in the tree:

$value : what ever is to be add at the end of the path:

Return value

array: A copy of the $tree with the new value added

3 calls to ConfigActionsTransform::change()
ConfigActionsChange::transform in src/Plugin/ConfigActions/ConfigActionsChange.php
Main transform to perform the change
ConfigActionsDefault::transform in src/Plugin/ConfigActions/ConfigActionsDefault.php
Main transform to perform the change
ConfigActionsTransformTest::testChange in tests/src/Unit/ConfigActionsTransformTest.php
@covers ::change

File

src/ConfigActionsTransform.php, line 213

Class

ConfigActionsTransform
Perform transformations on data needed for config_actions plugins

Namespace

Drupal\config_actions

Code

public static function change(array $tree, array $path, $value) {
  return static::add($tree, $path, $value);
}