Created
July 12, 2019 20:23
-
-
Save rpayanm/7e4c90c6e16087a9c81d36c6043d038d to your computer and use it in GitHub Desktop.
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
{# | |
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