diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 6bd028f4ea..2e92041f6c 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -844,7 +844,7 @@ function install_tasks($install_state) { 'type' => 'batch', ], 'install_config_download_translations' => [], - 'install_config_fix_profile' => [], + 'install_config_revert_install_changes' => [], ]; $tasks = array_slice($tasks, 0, $key, TRUE) + $config_tasks + @@ -2444,12 +2444,14 @@ function install_config_download_translations(&$install_state) { } /** - * Fixes configuration if the install profile has made changes in hook_install(). + * Reverts configuration if hook_install() implementations have made changes. + * + * This step ensures that the final configuration matches the configuration + * provided to the installer. */ -function install_config_fix_profile() { +function install_config_revert_install_changes() { global $install_state; - // It is possible that installing the profile makes unintended configuration - // changes. + $config_manager = \Drupal::service('config.manager'); $storage_comparer = new StorageComparer(\Drupal::service('config.storage.sync'), \Drupal::service('config.storage'), $config_manager); $storage_comparer->createChangelist();