{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% trans_default_domain 'EasyAdminBundle' %} {% if ea.crud.currentAction == 'detail' or not field.customOptions.get('renderAsSwitch') %} {{ (field.value == true ? 'label.true' : 'label.false')|trans }} {% else %}