Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 449 Bytes

dump-all-twig-variable-names.md

File metadata and controls

9 lines (6 loc) · 449 Bytes

Dump all twig variable names in the current context

To see all available twig variable names on the current template, you can use dump() with the globally available _context variable:

{{ dump(_context|keys) }}

This is useful if you don't want to use Kint or other alternatives. See the Drupal 8 documentation for more details.