I have defined an action and want to trigger it from a hook.
We do not want to use the Rules module, because it is still buggy with Drupal 8. So, we cannot use rules_invoke_component()
.
What is the correct way to trigger an action? Do I need to construct a new Action
object? Do I need a service? Is there documentation on that anywhere?