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.
Issue #2151097 by joelpittet, c4rl, IshaDakota, pplantinga, gnuget, longwave, jeanfei, sbudker1: Convert theme_confirm_form() to Twig
Task
Convert theme_confirm_form() to a Twig template.
Remaining tasks
- Patch
- Patch review
- Manual testing
- Profiling
Steps to test
@todo
Comment | File | Size | Author |
---|---|---|---|
#9 | screenshot_1.png | 29.18 KB | jjcarrion |
#8 | confirm_form_after_new_patch.png | 45.27 KB | chakrapani |
#8 | confirm_form_before_patch.png | 45.27 KB | chakrapani |
#8 | convert_theme_confirm_form_to_twig-2151097-8.patch | 1.56 KB | chakrapani |
#2 | 2151097-convert-theme-confirm-form-2.patch | 1.6 KB | rteijeiro |
Comments
Comment #1
star-szrAdding a commit message to the issue summary so the folks who already worked on #1987410: [meta] system.module - Convert theme_ functions to Twig and #1898454: system.module - Convert PHPTemplate templates to Twig (comment #41 and above aka @c4rl) get credit.
Comment #2
rteijeiro CreditAttribution: rteijeiro commentedLet's see but I'm not sure what I'm doing :(
Comment #3
star-szrIt would be nice if this was a suggestion like form__confirm_form.
Comment #4
MartiMcFlight CreditAttribution: MartiMcFlight commentedComment #5
MartiMcFlight CreditAttribution: MartiMcFlight commentedSorry i don‘t know how to implement what Cottser requests in comment #3 …
Comment #6
star-szrComment #7
joelpittetSome documentation fixes needed for this. If there is a decent way to not even have this template I'm open for suggestions, but otherwise lets just touch the docs up and get a manual testing.
This should be added in some respect to the twig template.
Two periods and should follow convention for the docblock titles in https://drupal.org/node/1823416#docblock
Config forms do this by default, not sure the description gives any any needed information and probably just be replaced by the theme function note about the form appearence.
Comment #8
chakrapani CreditAttribution: chakrapani commentedHere we go. I have added a patch with the changes mentioned in #7.
Also did manual testing and uploading screenshots before and after applying the patch.
I have also verified the HTML source and found no difference.
Deleting a node before aplying patch
Deleting a node after aplying patch
Comment #9
jjcarrionThe patch #8 works as expected. I attach a screenshot
Comment #10
galooph CreditAttribution: galooph commentedThe patch from #8 applied cleanly and worked as expected.
Comment #11
webchickCommitted and pushed to 8.x. Thanks!