I would like to display a button for each content displayed in a view.
In a custom module, I have added a custom submission handler to the edit form (
hook_form_FORM_ID_alter()) and defined the action on click (a field value is modified and the content is saved).
I’m missing the last step: Call the custom submit handler in a view field so that the button appears on each element of the mosaic.
Basically, the end user can click on the button of each content to decrease the quantity of content to 0 and make it disappear from the list (another custom module takes care of it).
How do I display this button linked to the custom submission handler in a view?