Adds Twig syntax to insert views, view results, regions, entities (e.g. nodes, blocks, webforms), menus, images, image styles, tokens, breadcrumbs, messages, contextual links and more.
twig
Twig VarDumper
Much faster than using kint, with colour coding, and still works nicely within narrow DOM elements.
Make sure you install using composer, as it has symfony dependencies.
Enabling twig debugging in the first place:
Also make sure you've activated twig debugging properly (including enabling the settings.local.php file in settings.php, and adding the debug setting to development.services.yml)
Potential gotcha - settings.local.php needs to be in /sites/default (or whichever), not just /sites/
If Twig debugging isn't enabled, the symptom is you don't see any output for the dump() commands.
Usage Tip:
- Hover over the keys and you get a tooltip that says 'Public method','Protected property' etc.
Bamboo Twig
Way to embed lots of objects in twig. note you have to selectively enable various sub modules for each of the commands. Seems pretty actively developed and well documented.