function _drupal_bootstrap_full

Temporary BC function for scripts not using DrupalKernel.

DrupalKernel skips this and replicates it via event listeners.

See also

Drupal\Core\EventSubscriber\PathSubscriber;

Drupal\Core\EventSubscriber\LegacyRequestSubscriber;

2 calls to _drupal_bootstrap_full()
drupal_bootstrap in drupal/core/includes/bootstrap.inc
Ensures Drupal is bootstrapped to the specified phase.
LegacyRequestSubscriber::onKernelRequestLegacy in drupal/core/lib/Drupal/Core/EventSubscriber/LegacyRequestSubscriber.php
Initializes the rest of the legacy Drupal subsystems.

File

drupal/core/includes/common.inc, line 4110
Common functions that many Drupal modules will need to reference.

Code

function _drupal_bootstrap_full($skip = FALSE) {
  static $called = FALSE;
  if ($called || $skip) {
    $called = TRUE;
    return;
  }

  // Initialize language (which can strip path prefix) prior to initializing
  // current_path().
  drupal_language_initialize();

  // Let all modules take action before the menu system handles the request.
  // We do not want this while running update.php.
  if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'update') {
    menu_set_custom_theme();
    drupal_theme_initialize();
  }
}