Closed (fixed)
Project:
Twig Tweak
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2018 at 19:15 UTC
Updated:
30 Mar 2026 at 07:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hanoiiAttached is the patch.
Comment #3
hanoiiImproved patch + tests.
Comment #4
hanoiiHmm, apparently tests are not properly configured for 2.x?
Comment #5
hanoiiAlso, not hugely important, but on twig_tweak_test.info.yml, I think the dependencies are wrong:
should be
Will submit a patch if interested, it works anyway. Just noting here for now.
Comment #6
chi commentedRight, just configured it.
Comment #7
chi commentedYes, this needs a to be fixed independently.
Comment #9
chi commentedCommitted with minor cleanups. Thanks.
Comment #11
anybody@hanoii I just saw that there's no documentation about the differences and when to use the twig_tweak methods added here instead of the core twig methods.
Could you maybe add that information to the README in this follow-up? #3582180: Document twig_tweak's drupal_link() / drupal_url() vs. url() / link() in Drupal core difference That would be great! :)