Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 362 Bytes

debugging.md

File metadata and controls

16 lines (11 loc) · 362 Bytes

< Menu

Debugging

How to dump and debug variable output in Twig.

Install Twig Tweak module and then dump variables with:

{{ dd(variable_name) }}

Without a contrib module you can dump ALL variables with:

<script>console.log({{ _context | json_encode | raw }});</script>