Skip to content

Instantly share code, notes, and snippets.

@sachbearbeiter
Created January 31, 2015 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sachbearbeiter/e758d5f4f23d3e5771bf to your computer and use it in GitHub Desktop.
Save sachbearbeiter/e758d5f4f23d3e5771bf to your computer and use it in GitHub Desktop.
I'm not sure if I'm being too obvious but 'item' is a placeholder some "renderable array". Depending on which template you are in that variable name will change. Within any template you can get a list of the available variables when you have twig_debug turned on by means of {{ dump(_context|keys) }} which if I remember right kint() will be nicer…
{{ dump(_context|keys) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment