function InstallerKernel::getExtensions
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Installer/InstallerKernel.php \Drupal\Core\Installer\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
1 call to InstallerKernel::getExtensions()
- InstallerKernel::initializeContainer in core/
lib/ Drupal/ Core/ Installer/ InstallerKernel.php - Initializes the service container.
File
-
core/
lib/ Drupal/ Core/ Installer/ InstallerKernel.php, line 134
Class
- InstallerKernel
- Extend DrupalKernel to handle force some kernel behaviors.
Namespace
Drupal\Core\InstallerCode
protected function getExtensions() : array {
$extensions = parent::getExtensions() ?: [];
if (!static::installationAttempted()) {
return $extensions;
}
// Ensure that the System module is always available to the installer.
$extensions['module']['system'] ??= 0;
$profile = $this->installGetProfile();
if ($profile) {
$extensions['profile'] = $profile->getName();
if (!isset($extensions['module'][$profile->getName()])) {
$extensions['module'][$profile->getName()] = 1000;
}
}
// Ensure that the install theme is always available to the installer.
foreach ($this->getInstallThemes($profile) as $theme) {
$extensions['theme'][$theme] ??= 0;
}
return $extensions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.