{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# This template checks for 'ea' variable existence because it can be used in a EasyAdmin Dashboard controller, where 'ea' is defined or from any other Symfony controller, where 'ea' is not defined #} {% trans_default_domain ea is defined ? ea.i18n.translationDomain : (translation_domain is defined ? translation_domain ?? 'messages') %} {% if app.session is not null and app.session.started %} {% set flash_messages = app.session.flashbag.all %} {% if flash_messages|length > 0 %}