{% if admin.hasAccess('edit', object) and admin.hasRoute('edit') %} {# {{ 'action_edit'|trans({}, 'SonataAdminBundle') }} #} {% endif %}