Skip to content

Instantly share code, notes, and snippets.

@thamas

thamas/debugger.twig

Last active Apr 16, 2019
Embed
What would you like to do?
{#
Source: https://youtu.be/jNqXZ4Jb2No?t=824
DrupalCon Seattle 2019: Pattern Lab: The Definitive How-to
#}
{#
_context « All available global variables
Do not print "value" because it crashes Drupal!
#}
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment