{% if is_granted('ROLE_SUPER_ADMIN') %} {% if 'localhost' in app.request.getSchemeAndHttpHost() %} {% set href = app.request.getSchemeAndHttpHost()~ '?_switch_user='~item.username %} {% else %} {% set href = merchantUtils.merchantCurrent.getMerchantConfig('url')~ '?_switch_user='~item.username %} {% endif %} {% if is_dropdown %} {%- if action.icon %} {% endif -%} {{ action.label|trans(arguments = trans_parameters|merge({ '%entity_id%': item_id }), domain = translation_domain) }} {% else %} {%- if action.icon %} {% endif -%} {% endif %} {% endif %}