Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By davidhernandez on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
The is_front variable was part of template_preprocess()
, during creation of the default set of variables like is_admin, logged_in, title_prefix, etc. is_front being part of the processing of every template file can cause per-page caching for every template. For that performance reason, it has been moved to template_preprocess_page()
.
As a consequence of the move, the is_front variable will no longer be available to all templates. It will be available to page-level templates.
Impacts:
Module developers
Themers