Suppose that I have a view that outputs a list of some content. Now I'd like to add some action buttons next to each content item, so that clicking these buttons triggers some custom action or redirect the user to another path (specific for that item).
I found a solution here that comes close to what I'd like to do, but that solution is based on D7 Add custom action buttons to view. Without repeating the content of this link, could someone let me know whether that approach is still valid/good practice for Drupal 8?
In case it is the solution, how would you implement the functionality of passing the $nid of a list item to a different form via POST when clicking one of the action buttons ? Would this be part of the function function query() {...}
in step 5 of the link ? If so, how would you approach this ?
Are there solutions that might be better suited to D8?