Skip to content

Instantly share code, notes, and snippets.

@rpayanm
Created July 12, 2019 20:23
Show Gist options
  • Save rpayanm/7e4c90c6e16087a9c81d36c6043d038d to your computer and use it in GitHub Desktop.
Save rpayanm/7e4c90c6e16087a9c81d36c6043d038d to your computer and use it in GitHub Desktop.
{#
https://www.drupal.org/node/1906780
Beware of dump()
If you want to see all variables, but dump() results in exhausted memory because of recursion or the like, you can loop through _context to see the all the keys in it:
#}
<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