View field with link to excecute action plugin
I'm thinking about setting up a route with a csrf token and an access check on a controller that manually performs the action:

my_module.my_action_callback:
  path: '/node/{node}/my_action_callback'
  defaults:
    _controller: '\Drupal\my_module\Controller\ActionController::my_action'
    _title: 'My action'
  requirements:
    _permission: 'perform my action'
    _csrf_token: 'TRUE'
    _custom_access: '\Drupal\my_module\Controller\ActionController::my_action_access'


In ActionController::my_action I could perform the action programmatically:

\Drupal\system\Entity\Action::load('foo')-&gt;execute($data);


I had hoped there was a less complex and more elegant way using an existing view plugin.