{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% set images = field.formattedValue %} {% if images is not iterable %} {% set images = [images] %} {% endif %} {% for image in images %} {% set html_id = 'ea-lightbox-' ~ field.uniqueId ~ '-' ~ loop.index %}