1 config.sync.inc | _config_sync_system_extensions(&$context) |
Batch API callback. Sync the "system.extensions" config in its own request.
File
- core/
modules/ config/ config.sync.inc, line 73
Code
function _config_sync_system_extensions(&$context) {
// Bail if any errors have been set during validation.
if (isset($context['results']['errors'])) {
$context['finished'] = 1;
return;
}
// If the system.extensions config file is being changed, it needs to be
// run first and in its own request. This will make it so that the other batch
// requests have any new modules enabled, allowing for full validation of
// the new config. If disabling modules via config sync is supported later,
// this would be called a second time after syncing config.
if (isset($context['results']['system_extensions'])) {
$config_contents = $context['results']['system_extensions'];
config_sync_file('system.extensions', 'update', $config_contents);
}
}