class ConfigTestStorage in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage
- 9 core/modules/config/tests/config_test/src/ConfigTestStorage.php \Drupal\config_test\ConfigTestStorage
@todo.
Hierarchy
- class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTrait
- class \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterface
- class \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterface
- class \Drupal\config_test\ConfigTestStorage
- class \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterface
- class \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterface
Expanded class hierarchy of ConfigTestStorage
File
- core/
modules/ config/ tests/ config_test/ src/ ConfigTestStorage.php, line 11
Namespace
Drupal\config_testView source
class ConfigTestStorage extends ConfigEntityStorage {
/**
* {@inheritdoc}
*/
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);
}
/**
* {@inheritdoc}
*/
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);
}
/**
* {@inheritdoc}
*/
public function importDelete($name, Config $new_config, Config $old_config) {
// Set a global value we can check in test code.
$GLOBALS['hook_config_import'] = __METHOD__;
return parent::importDelete($name, $new_config, $old_config);
}
}