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.
Follow-up from #2114563: Remove TwigReference with the help of 'without' filter replacing 'show'/'hide' functions..
Seems that |raw is still not working right after the TwigReference removal. This must have been when I was playing with the priority because now if I move the priority to a normal positive number (above the escaper). |raw works with autoescaping on.
@dawener also mentioned macros seemed to work better when this was at a higher priority.
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff.txt | 490 bytes | star-szr |
#10 | 2221535-10.patch | 2.97 KB | star-szr |
#7 | interdiff.txt | 855 bytes | star-szr |
#6 | 2221535-6.patch | 2.93 KB | star-szr |
#6 | 2221535-6-fail.patch | 2.39 KB | star-szr |
Comments
Comment #1
joelpittetThrowing this patch up to see if testbot has issues but likely needs some review to see if this will cause other issues. Fairly confident it should be fine. Let's have a look shall we?
Also, may need tests of some sort but can't think of how/what but something to show the raw and macros are working as expected.
Comment #3
star-szr1: 2221535-TwigNodeVisitor-priority-1.patch queued for re-testing.
Comment #4
star-szrTest passes locally, testbot log says:
Sent for re-test.
Comment #5
star-szrHere we go, this should fail/pass appropriately. Left the interdiff off because the previous patch is one line :)
I stole the drupalSetContent() trick from the twig namespace tests. Makes me want to refactor some of our theme test coverage to remove page callbacks knowing that's possible!
Comment #6
star-szrFixed up a bit, will cancel the #5 patches.
Comment #7
star-szrForgot the interdiff. /me goes to bed
Comment #10
star-szrHowever might as well fix the docblock while we are here because this will conflict a bit with #2212309: Drupal\Core\Template and twig.engine docs, coding standards, and unused code cleanup anyway.
Comment #12
joelpittetAwesome, #6 says it all. I'm cool with the conflict reroll in #2212309.
Comment #13
dawehner<3
Comment #14
webchickGreat catch, and with tests too! :)
Committed and pushed to 8.x. Thanks!