1 config_test_hooks.module config_test_hooks_config_delete(Config $active_config)

Implements hook_config_delete().

File

core/modules/config/tests/config_test_hooks/config_test_hooks.module, line 69
Tests the hooks provided by Configuration management module.

Code

function config_test_hooks_config_delete(Config $active_config) {
  if ($active_config->getName() === 'config_test.new_config') {
    // Set a value in a different config file before deleting this config.
    config_set('config_test.simple', 'deleted_animal', $active_config->get('favorite_animal'));
  }
}