Adding a delete button to node edit form I need to add a delete button to a node edit form, so in case I open a edit form of the node I want to have a possibility to delete it as well.
This edit node form is genereted from a view using Link to edit Content and displayed in modal window, which adds the following markup to the page.

&lt;a href="/node/597/edit" class="use-ajax" data-dialog-type="modal" &gt;Link to edit node&lt;/a&gt;


How can I programmatically achieve this in Drupal 8?
There is a "Delete" Link right to the "Save" Button. If you can't see it, you're missing the "delete content of type x" permission.
If you need the Link styled as button, use the matching css classes of your theme.