Temporary BC function for scripts not using DrupalKernel.
DrupalKernel skips this and replicates it via event listeners.
Drupal\Core\EventSubscriber\PathSubscriber;
Drupal\Core\EventSubscriber\LegacyRequestSubscriber;
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();
}
}