diff --git a/core/includes/theme.inc b/core/includes/theme.inc index e772289..22cacb3 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1610,17 +1610,6 @@ function _template_preprocess_default_variables() { 'logged_in' => FALSE, ); - // drupal_is_front_page() might throw an exception. - try { - $variables['is_front'] = drupal_is_front_page(); - } - catch (Exception $e) { - // If the database is not yet available, set default values for these - // variables. - $variables['is_front'] = FALSE; - $variables['db_is_active'] = FALSE; - } - // Give modules a chance to alter the default template variables. \Drupal::moduleHandler()->alter('template_preprocess_default_variables', $variables); @@ -1773,6 +1762,16 @@ function template_preprocess_page(&$variables) { $variables['site_name'] = (theme_get_setting('features.name') ? String::checkPlain($site_config->get('name')) : ''); $variables['site_slogan'] = (theme_get_setting('features.slogan') ? Xss::filterAdmin($site_config->get('slogan')) : ''); + // drupal_is_front_page() might throw an exception. + try { + $variables['is_front'] = drupal_is_front_page(); + } + catch (Exception $e) { + // If the database is not yet available, set default values for these + // variables. + $variables['is_front'] = FALSE; + $variables['db_is_active'] = FALSE; + } if (!defined('MAINTENANCE_MODE')) { $variables['action_links'] = menu_get_local_actions(); $variables['tabs'] = menu_local_tabs(); diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index c08ab7c..a78fcb3 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -54,7 +54,6 @@ * - page: Flag for the full page state. Will be true if view_mode is 'full'. * - readmore: Flag for more state. Will be true if the teaser content of the * node cannot hold the main body content. - * - is_front: Flag for front. Will be true when presented on the front page. * - logged_in: Flag for authenticated user status. Will be true when the * current user is a logged-in member. * - is_admin: Flag for admin user status. Will be true when the current user