function ConfigTestStorage::importCreate

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

Overrides ConfigEntityStorage::importCreate

File

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

Class

ConfigTestStorage

Namespace

Drupal\config_test

Code

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);
}

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