Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Installer/InstallerKernel.php \Drupal\Core\Installer\InstallerKernel::installationAttempted()
  2. 9 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.

21 calls to InstallerKernel::installationAttempted()
block_themes_installed in core/modules/block/block.module
Initializes blocks for installed themes.
ConfigImporterBatch::finish in core/lib/Drupal/Core/Config/Importer/ConfigImporterBatch.php
Finish batch.
ConfigInstaller::getConfigToCreate in core/lib/Drupal/Core/Config/ConfigInstaller.php
Gets configuration data from the provided storage to create.
ConfigInstaller::installCollectionDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
ConfigInstaller::installDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php

... See full list

File

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

Class

InstallerKernel
Extend DrupalKernel to handle force some kernel behaviors.

Namespace

Drupal\Core\Installer

Code

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']);
}