print variable in twig code example
Example 1: dump all variables twig
{{ dump(user) }}
Example 2: print all variables twig
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>
{{ dump(user) }}
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>