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.
<a href="/node/597/edit" class="use-ajax" data-dialog-type="modal" >Link to edit node</a>
How can I programmatically achieve this in Drupal 8?