diff --git a/theme/system/page.vars.php b/theme/system/page.vars.php index 603500d..e844c5b 100644 --- a/theme/system/page.vars.php +++ b/theme/system/page.vars.php @@ -50,18 +50,8 @@ function bootstrap_preprocess_page(&$variables) { '#value' => $variables['site_slogan'], )); } -} -/** - * Implements hook_process_page(). - * - * @see page.tpl.php - */ -function bootstrap_process_page(&$variables) { - // Store the page variables in cache so it can be used in region - // preprocessing. - $page = &drupal_static(__FUNCTION__); - if (!isset($page)) { - $page = $variables; - } + // Store Page render array after preprocessing to use it in bootstrap_preprocess_region() + $processed_page = &drupal_static('_bootstrap_processed_page'); + $processed_page = $variables['page']; } diff --git a/theme/system/region.vars.php b/theme/system/region.vars.php index 7f5ba75..cb80033 100644 --- a/theme/system/region.vars.php +++ b/theme/system/region.vars.php @@ -13,7 +13,7 @@ function bootstrap_preprocess_region(&$variables) { $config = \Drupal::config('bootstrap.settings'); $region = $variables['region']; $regions = system_region_list($GLOBALS['theme_key']); - $variables['page'] = &drupal_static('bootstrap_process_page'); + $variables['page'] = &drupal_static('_bootstrap_processed_page'); $attributes = &$variables['attributes']; $content_attributes = &$variables['content_attributes'];