diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 55f985d..6cd4f47 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1763,7 +1763,7 @@ 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. + // An exception might be thrown. try { $variables['is_front'] = \Drupal::service('path.matcher')->isFrontPage(); } diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index 3150206..2e35f63 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/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