This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.
twig_debug currently references an internal function, _theme(). It would probably be more helpful if the display was more like a render array or if we can come up with another way to present the theme hook(s) called since developers need to build render arrays instead of calling _theme().
Change twig_debug output to not refer to _theme(). Exact solution to be determined and up for discussion and suggestions.
- Write patch (novice)
- Review patch to check it fixes the issue, the change is properly documented and for coding standards. Provide test evidence (novice)
- Keep issue summary up to date (novice)
Steps to reproduce
$settings['twig_debug'] = TRUE; line in settings.php and view source or use web inspector or equivalent and you should see something like this:
<!-- THEME DEBUG --> <!-- CALL: _theme('html') --> <!-- FILE NAME SUGGESTIONS: * html--front.html.twig * html--.html.twig x html.html.twig --> <!-- BEGIN OUTPUT from 'core/modules/system/templates/html.html.twig' -->
User interface changes
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 79,023 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 66,831 pass(es). View
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 66,728 pass(es). View