ConfigTestStorage.php in Drupal 9
File
core/modules/config/tests/config_test/src/ConfigTestStorage.php
View source
<?php
namespace Drupal\config_test;
use Drupal\Core\Config\Entity\ConfigEntityStorage;
use Drupal\Core\Config\Config;
class ConfigTestStorage extends ConfigEntityStorage {
public function importCreate($name, Config $new_config, Config $old_config) {
$GLOBALS['hook_config_import'] = __METHOD__;
return parent::importCreate($name, $new_config, $old_config);
}
public function importUpdate($name, Config $new_config, Config $old_config) {
$GLOBALS['hook_config_import'] = __METHOD__;
return parent::importUpdate($name, $new_config, $old_config);
}
public function importDelete($name, Config $new_config, Config $old_config) {
$GLOBALS['hook_config_import'] = __METHOD__;
return parent::importDelete($name, $new_config, $old_config);
}
}