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.
Devel has a page to debug php code. I'd like to debug twig template code in another page.
Sorry for my English!
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-render_twig_template_code-2100151-1.patch | 6.4 KB | tien.xuan.vo |
Comments
Comment #1
tien.xuan.vo CreditAttribution: tien.xuan.vo commentedQuick implementation
Comment #2
thehong CreditAttribution: thehong commentedWe should use new style Controller instead of old style page callback.
'access arguments' => array('render twig template'),
We do not have this permission yet.
Comment #3
willzyx CreditAttribution: willzyx commented@tien.xuan.vo thanks for contributing!
I think that this functionality can be very useful but we need a reroll before consider to add it to devel. The patch was sent long time ago and the devel and the drupal core have changed a lot :)