Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigOverride.php

function ConfigOverride::loadOverrides

File

core/lib/Drupal/Core/Installer/ConfigOverride.php, line 29

Class

ConfigOverride
Override configuration during the installer.

Namespace

Drupal\Core\Installer

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal