Last active
April 18, 2016 20:35
-
-
Save rcolepeterson/66a0918cdccefb8bdcfc371cad13c85c to your computer and use it in GitHub Desktop.
drupal commands
This file contains 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
Discovering and Inspecting Variables in Twig Templates | |
{{ dump(_context|keys) }} | |
or | |
<ol> | |
{% for key, value in _context %} | |
<li>{{ key }}</li> | |
{% endfor %} | |
</ol> | |
ref links: | |
https://www.drupal.org/node/1906780 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment