1 system.module | system_config_delete_validate(Config $active_config, $all_changes) |
Implements hook_config_delete_validate().
File
- core/
modules/ system/ system.module, line 3389 - Configuration system that lets administrators modify the workings of the site.
Code
function system_config_delete_validate(Config $active_config, $all_changes) {
$config_name = $active_config->getName();
if ($config_name === 'system.extensions') {
throw new ConfigValidateException(t('The @config configuration is required and cannot be deleted. Check that it was not accidentally removed.', array('@config' => $config_name)));
}
}