How to subscribe to Shopware 5 plugin config value changes?

is it possible to execute some code, e.g. via a subscriber action to my Shopware 5 plugin config changes?

Is there a backend Pre/Post dispatch event for it?

1 answer

  • answered 2021-01-24 20:03 Valerii Pravoslavnyi

    Depends on your requirements you can use Shopware_Controllers_Backend_Config_Before_Save_Config_Element or Shopware_Controllers_Backend_Config_After_Save_Config_Element event. If you need to get new values Shopware_Controllers_Backend_Config_After_Save_Config_Element looks like better for your case.