{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% for type in sonata_flashmessages_types() %} {% set domain = domain is defined ? domain : null %} {% set messages = sonata_flashmessages_get(type, domain) %} {% if messages|length > 1 %}
{% for message in messages %} {% if loop.index >= 2 %} {{ message|raw }} {% else %} {{ message|raw }} {% endif %} {% endfor %}
{% elseif messages|length == 1 %}
{{ messages|first|raw }}
{% endif %} {% endfor %}