trilbymedia / grav-plugin-flex-objects

Powerful and supremely flexible object support for Grav
MIT License
38 stars 10 forks source link

Admin Event Hook for Flex Object #148

Open ChristianaHoJo opened 2 years ago

ChristianaHoJo commented 2 years ago

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 commented 2 years ago

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

mahagr commented 2 years ago

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