You are here

public function MockConfig::setData in Configuration Update Manager 8

Sets the entire configuration value.

File

tests/src/Unit/ConfigUpdateUnitTestBase.php, line 479

Class

MockConfig
Mock class for mutable configuration, config entity, and entity storage.

Namespace

Drupal\Tests\config_update\Unit

Code

public function setData($value) {

  // Retain the _core key.
  $core = isset($this->value['_core']) ? $this->value['_core'] : '';
  $this->value = $value;
  if ($core) {
    $this->value['_core'] = $core;
  }
  return $this;
}