Skip to content

Instantly share code, notes, and snippets.

@thamas
Last active April 16, 2019 11:03
Show Gist options
  • Save thamas/c575209a45575b98b4a9a2af0d49a25a to your computer and use it in GitHub Desktop.
Save thamas/c575209a45575b98b4a9a2af0d49a25a to your computer and use it in GitHub Desktop.
{#
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