function _config_installer_switch_profile in Configuration installer 8
Switch the currently active profile in the installer.
Parameters
string $profile: The profile to switch to.
1 call to _config_installer_switch_profile()
- config_installer_fix_profile in ./
config_installer.profile - Fixes configuration if the install profile has made changes in hook_install().
File
- ./
config_installer.profile, line 298 - Enables modules and site configuration for a minimal site installation.
Code
function _config_installer_switch_profile($profile) {
global $install_state;
$install_state['parameters']['profile'] = $profile;
$settings = Settings::getAll();
$settings['install_profile'] = $profile;
new Settings($settings);
}