{#% import "@AdminLTE/Macros/default.html.twig" as macro %#} {#% if app.session and app.session.started and app.session.flashbag.peekAll|length > 0 %}
{{ macro.session_flash(adminlte_close_alert|default(true), false, '', 'flashmessages') }}
{% endif %#} {% if app.request.hasPreviousSession and (app.session.flashbag.peek('notice')|length > 0 or app.session.flashbag.peek('error')|length > 0 or app.session.flashbag.peek('success')|length > 0) %}
{% for message in app.flashes('notice') %}
Alert!
{{ message|raw }}
{% endfor %} {% for message in app.flashes('error') %}
{{ message|raw }}
{% endfor %} {% for message in app.flashes('success') %}
{{ message|raw }}
{% endfor %}
{% endif %}