grav-plugin-flex-objects icon indicating copy to clipboard operation
grav-plugin-flex-objects copied to clipboard

Admin Event Hook for Flex Object

Open ChristianaHoJo opened this issue 4 years ago • 2 comments

Hello!

Can you give me the correct Admin Event Hook that I can use to intervene when saving Flex Objects to extend the functionality in my plugin? The “onAdminSave” event does not work for me at this point. I am looking forward to help!

Greetings, Christiana

ChristianaHoJo avatar Oct 22 '21 07:10 ChristianaHoJo

I think I found it. It is onFlexAfterSave(), right?

ChristianaHoJo avatar Oct 22 '21 09:10 ChristianaHoJo

Yes. That said, it's also possible to have an event call every time the object is updated, regardless of where it happens.

mahagr avatar Nov 04 '21 07:11 mahagr