public function ConfigTestStorage::importUpdate in Drupal 8
Same name and namespace in other branches
- 9 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage::importUpdate()
Updates entities upon synchronizing configuration changes.
Parameters
string $name: The name of the configuration object.
\Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data.
\Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data.
Throws
\Drupal\Core\Config\ConfigImporterException Thrown when the config entity that should be updated can not be found.
Overrides ConfigEntityStorage::importUpdate
File
- core/
modules/ config/ tests/ config_test/ src/ ConfigTestStorage.php, line 26
Class
- ConfigTestStorage
- @todo.
Namespace
Drupal\config_testCode
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);
}