public function ConfigTestStorage::importCreate in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage::importCreate()
Creates 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.
Overrides ConfigEntityStorage::importCreate
File
- core/
modules/ config/ tests/ config_test/ src/ ConfigTestStorage.php, line 16
Class
- ConfigTestStorage
- @todo.
Namespace
Drupal\config_testCode
public function importCreate($name, Config $new_config, Config $old_config) {
// Set a global value we can check in test code.
$GLOBALS['hook_config_import'] = __METHOD__;
return parent::importCreate($name, $new_config, $old_config);
}