public static function InstallerKernel::installationAttempted in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Installer/InstallerKernel.php \Drupal\Core\Installer\InstallerKernel::installationAttempted()
- 10 core/lib/Drupal/Core/Installer/InstallerKernel.php \Drupal\Core\Installer\InstallerKernel::installationAttempted()
Returns TRUE if a Drupal installation is currently being attempted.
Return value
bool TRUE if the installation is currently being attempted.
22 calls to InstallerKernel::installationAttempted()
- block_themes_installed in core/
modules/ block/ block.module - Initializes blocks for installed themes.
- ChainedFastBackendFactory::__construct in core/
lib/ Drupal/ Core/ Cache/ ChainedFastBackendFactory.php - Constructs ChainedFastBackendFactory object.
- ConfigImporterBatch::finish in core/
lib/ Drupal/ Core/ Config/ Importer/ ConfigImporterBatch.php - Finish batch.
- ConfigImportSubscriber::validateModules in core/
lib/ Drupal/ Core/ EventSubscriber/ ConfigImportSubscriber.php - Validates module installations and uninstallations.
- ConfigInstaller::getConfigToCreate in core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php - Gets configuration data from the provided storage to create.
File
- core/
lib/ Drupal/ Core/ Installer/ InstallerKernel.php, line 77
Class
- InstallerKernel
- Extend DrupalKernel to handle force some kernel behaviors.
Namespace
Drupal\Core\InstallerCode
public static function installationAttempted() {
// This cannot rely on the MAINTENANCE_MODE constant, since that would
// prevent tests from using the non-interactive installer, in which case
// Drupal only happens to be installed within the same request, but
// subsequently executed code does not involve the installer at all.
// @see install_drupal()
return isset($GLOBALS['install_state']) && empty($GLOBALS['install_state']['installation_finished']);
}