[policy, no patch] Decide on a mechanism to properly deprecate Twig template variables

Created on 2 April 2020, over 4 years ago
Updated 29 March 2024, 9 months ago

Problem/Motivation

Sometimes we need to change variables passed to various Twig templates. E.g.:

#3119279: views-view-table.html.twig template directly uses details without render array and polyfills
#2887171: Add change record to @deprecated template variable head_title_array for theme.inc
...

We don't currently have a clean mechanism to mark Twig template variables as deprecated, but we could use one.

Proposed resolution

TBD.

Remaining tasks

  1. Brainstorm options.
  2. Debate the merits.
  3. Pick one.
  4. Document it somewhere.

User interface changes

N/A

API changes

TBD.

Data model changes

N/A

Release notes snippet

TBD.

🌱 Plan
Status

Closed: duplicate

Version

11.0 🔥

Component
Theme 

Last updated 36 minutes ago

Created by

🇺🇸United States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024