function InstallerKernel::getExtensions

Get the core.extension config object.

Return value

array|false The core.extension config object if it exists or FALSE.

Overrides DrupalKernel::getExtensions

File

core/lib/Drupal/Core/Installer/InstallerKernel.php, line 103

Class

InstallerKernel
Extend DrupalKernel to handle force some kernel behaviors.

Namespace

Drupal\Core\Installer

Code

protected function getExtensions() : array {
  $extensions = parent::getExtensions() ?: [];
  // Ensure that the System module is always available to the installer.
  $extensions['module']['system'] ??= 0;
  if (empty($extensions['profile']) && !empty($GLOBALS['install_state']) && $profile = _install_select_profile($GLOBALS['install_state'])) {
    $extensions['profile'] = $profile;
    $extensions['module'][$profile] = 1000;
  }
  return $extensions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.