{# This template is used to render the delete popover. In order to use it in a template, you need to include it and call the block deletePopoverContent. e.g. {% set id = setting.id %} {% set targetUrl = path('invoices.settings.delete', {'id': setting.id}) %} {% use "common/delete_popover.html.twig" %} and assign the attribute data-popover="delete" to the button that should trigger the popover. e.g.