{# Template for displaying email context (JSON) in show view #} {% extends '@SonataAdmin/CRUD/base_show_field.html.twig' %} {% block field %} {% set context = value %} {% if context is not null and context is iterable %}
{% for key, val in context %} {% endfor %}
Variable Valeur
{{ key }} {% if val is iterable %}
{{ val|json_encode(constant('JSON_PRETTY_PRINT')) }}
{% else %} {{ val }} {% endif %}
{% else %} Aucun contexte disponible {% endif %} {% endblock %}