Custom function in a Module Controller

I need to trigger a custom function that is run after a user clicks "Update" for a post in a Twill module, and that function needs to receive a variable e.g. the post_id number. I know there are Admin Controllers for each module so I'm guessing I'd put it there but how would it launch. Where do I start?
1 Reply
kallefrombosnia
Hello, afaik there is no support for the custom actions. I was proposing this a long time ago, but no design currently support this. Alternative to this is to use Repository in which you can override methods like afterSave or prepareFieldsBeforeSave, which can give you access to the request via request() or fields which are submitted via form. In there you can make a custom logic. Soon Ill work and finish on the events in the 3.x which are handy to use for this type of work.
Want results from more Discord servers?
Add your server