You are here

public static function InstallerKernel::installationAttempted in Drupal 8

Same name and namespace in other branches
  1. 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.

23 calls to InstallerKernel::installationAttempted()
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::drupalInstallationAttempted in core/lib/Drupal/Core/Config/ConfigInstaller.php
Wrapper for drupal_installation_attempted().
ConfigInstaller::getConfigToCreate in core/lib/Drupal/Core/Config/ConfigInstaller.php
Gets configuration data from the provided storage to create.

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