function ConfigTestStorage::importUpdate

Same name in other branches
  1. 9 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage::importUpdate()
  2. 8.9.x core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage::importUpdate()
  3. 10 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage::importUpdate()

Overrides ConfigEntityStorage::importUpdate

File

core/modules/config/tests/config_test/src/ConfigTestStorage.php, line 25

Class

ConfigTestStorage

Namespace

Drupal\config_test

Code

public function importUpdate($name, Config $new_config, Config $old_config) {
    // Set a global value we can check in test code.
    $GLOBALS['hook_config_import'] = __METHOD__;
    return parent::importUpdate($name, $new_config, $old_config);
}

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