Is there an event in Magento 2 for Newsletter Subscription from the Profile page?
How do I find out when a user updates their newsletter subscription preference from this page?
event-observermagento2newsletter
Is there an event in Magento 2 for Newsletter Subscription from the Profile page?
How do I find out when a user updates their newsletter subscription preference from this page?
Best Answer
You can use the predispatch/postdispatch events triggerred by the controller action class. In your case:
controller_action_predispatch_newsletter_manage_save
to observe a behavior BEFORE the save method is called.controller_action_postdispatch_newsletter_manage_save
to observer a behavior AFTER the save method is called.