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..
Documentation clean-up for the TwigEnvironment and twig.engine functions.
Comment | File | Size | Author |
---|---|---|---|
#15 | 2212309-twig-engine-doc-cleanup.patch | 9.35 KB | joelpittet |
#10 | 2212309-twig-engine-doc-cleanup-10.patch | 9.45 KB | joelpittet |
#7 | interdiff.txt | 3.33 KB | joelpittet |
#6 | 2212309-twig-engine-doc-cleanup-6.patch | 9.35 KB | joelpittet |
#4 | 2212309-twig-engine-doc-cleanup-4.patch | 8.13 KB | joelpittet |
Comments
Comment #1
joelpittetComment #2
joelpittetComment #3
joelpittetPostponing on the critical. Here's the interdiff from #2114563-84: Remove TwigReference with the help of 'without' filter replacing 'show'/'hide' functions. to apply after it get's in.
Comment #4
joelpittetWithout is in, TwigReference is out and here's some doc cleanup to go with it.
Added clean-up for the whole \Drupal\Core\Template namespace because it's easy to review them to see they are all matching in the directory.
Comment #5
star-szrLooking great overall! Few nits:
Nit: Great that we're removing the extra blank line from EOF here but we should also add a blank line before the end of the class declaration per https://drupal.org/node/608152#indenting.
Can we move the "We use this" comment inside the leaveNode method? I've found it really useful to know what this code is doing :)
This hunk can be removed since this will be taken care of in #2221535: TwigNodeVisitor's priority is too early and breaks some filters and macros.
Comment #6
joelpittetThanks @Cottser, did each thing in #5 and a couple more including removing the unused class
TwigFunctionTokenParser
Comment #7
joelpittetDamn forgot my interdiff.
Comment #8
star-szrDamn TwigReference had its claws in everywhere! That code removal can be a separate issue if needed but other than that this all looks like good cleanup to me and I don't see much if any conflicts happening (other than the autoescape patch but should be easy to resolve those).
Comment #10
joelpittetRe-rolled. that priority line was conflicting.
Comment #11
joelpittetOh and back to rtbc.
Comment #13
star-szr10: 2212309-twig-engine-doc-cleanup-10.patch queued for re-testing.
Comment #14
star-szrThis needs to be reverted.
Comment #15
joelpittetDoc fix back to what it was, thanks @Cottser.
Comment #16
star-szrGreat, basically the same as #6 now. Thanks! +1 to RTBC.
Comment #17
webchickCommitted and pushed to 8.x. Thanks!