{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var action \EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% set html_attributes = action.htmlAttributes %} {% if action.displayableConfirmationMessage is not null %} {% set html_attributes = html_attributes|merge({ 'data-action-confirmation-message': action.displayableConfirmationMessage|trans, }) %} {% endif %} {% if action.hasConfirmation %} {% set html_attributes = html_attributes|merge({ 'data-action-entity-name': ea().crud.entityLabelInSingular|default('')|trans, 'data-action-entity-id': entity.primaryKeyValueAsString|default(''), }) %} {% if action.confirmationButtonLabel is not null %} {% set html_attributes = html_attributes|merge({ 'data-action-confirmation-button': action.confirmationButtonLabel|trans, }) %} {% endif %} {% endif %} {% set action_label = outerScope.action.label|trans %} {%- if action_label is not empty -%}{{ action_label|raw }}{%- endif -%}