I want to get a comment which submits when order view. I use this event
sales_order_status_history_save_after and it fire when submitting a comment but I am struggling to get a comment which user adds.
controller_action_postdispatch_sales_order_addComment event and it also fires when comment submit and also get added a comment by these line of code
$request = $observer->getEvent()->getRequest(); print_r($request->getPostValue());
But I want to learn which values are dispatch when
sales_order_status_history_save_after fire. In have search sales_order_status_history_save_after event in whole Magento project but no found this event just fine protected
$_eventPrefix = 'sales_order_status_history'; in
Magento\Sales\Model\Order\Status\History class. I am curious how this event fire and which thing it dispatch. I want to get added comments.