Problem/Motivation
theme_render_and_autoescape() is not used at runtime since theme functions were removed from core; it is only used in tests. It could also be used by contrib or custom theme engines (if any exist) but does not have any uses in contrib at present.
Steps to reproduce
Proposed resolution
Deprecate it for removal.
Remaining tasks
Decide whether it can be deprecated in 9.5.x or must wait until 10.1.x.
We missed the 9.5.x window, so it's now 10.1.x
User interface changes
API changes
Theme engines must handle escaping by themselves (Twig already handles this in TwigExtension).
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3299946
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3299946-deprecate-themerenderandautoescape
changes, plain diff MR !3285
Comments
Comment #2
longwaveComment #4
longwaveComment #5
longwaveComment #6
longwaveComment #7
gaurav-mathur commentedApplied patch #6 successfully on drupal vesrion 10.1.x
Thank you
Comment #8
spokjeComment #9
spokjeAdded draft CR and switching to MR-workflow.
Comment #10
spokje@gaurav-mathur:
Thanks, but we already have Drupal CI in place to check if patches apply.
Comment #11
spokjeComment #13
spokjeComment #14
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.
Change record was added
Deprecation test exists in ThemeRenderAndAutoescapeTest
Looks like a good deprecation.
Comment #16
catchAgreed it doesn't make sense to keep this if nothing in contrib is using it.
Committed 978a8bf and pushed to 10.1.x. Thanks!
Comment #17
longwavePublished the change record.