XF 2.0 Ideal way to listen to saving options

Robust

Well-known member
What's the best way to listen to an options update?

Using a pretty messed up API that uses authentication tokens in a weird way. The user needs to supply a token for the add-on to create an actual token. When the user saves a new token, I'd like to run some code to contact the external API and create a new nonce.

I can probably listen to the entity or add a hook into the controller save, but both seem strange. Ideally, a code event listener or something would be better I'd assume? Or a method that I'm missing.
 
Top Bottom