Created
January 15, 2021 19:49
-
-
Save zakiya/ded7a07d352dc86df38699b75af70199 to your computer and use it in GitHub Desktop.
Debugging Twig in Drupal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# ~ Core ~ #} | |
{# {{ dump() }} #} | |
{# {{ dump(page) }} #} | |
{# ~ Devel~ #} | |
{# {{ kint()}} #} | |
{# {{ kint(page)}} #} | |
{# {{ devel_dump(page) }} #} | |
{# {{ devel_breakpoint() }} #} | |
{# ~ Devel + Kint library + settings change ~ | |
{# https://site.lndo.site/admin/config/development/devel #} | |
{# https://gitlab.com/drupalspoons/devel/-/issues/358 #} | |
{# {{ kint(page)}} #} | |
{# ~ Twig Tweak ~#} | |
{# {{ drupal_dump(page) }} | |
{{ drupal_breakpoint() }} | |
{# ~ Twig Xdebug ~ #} | |
{# {{ breakpoint }} #} | |
{# ~ Other/ maybe? ~ #} | |
{# {{ dsm(kint(page)) }} #} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment