function ConfigOverride::loadOverrides
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Installer/ConfigOverride.php \Drupal\Core\Installer\ConfigOverride::loadOverrides()
- 10 core/lib/Drupal/Core/Installer/ConfigOverride.php \Drupal\Core\Installer\ConfigOverride::loadOverrides()
- 11.x core/lib/Drupal/Core/Installer/ConfigOverride.php \Drupal\Core\Installer\ConfigOverride::loadOverrides()
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
-
core/
lib/ Drupal/ Core/ Installer/ ConfigOverride.php, line 29
Class
- ConfigOverride
- Override configuration during the installer.
Namespace
Drupal\Core\InstallerCode
public function loadOverrides($names) {
$overrides = [];
if (InstallerKernel::installationAttempted() && function_exists('drupal_install_profile_distribution_name')) {
// Early in the installer the site name is unknown. In this case we need
// to fallback to the distribution's name.
$overrides['system.site'] = [
'name' => drupal_install_profile_distribution_name(),
];
}
return $overrides;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.