I need to alter the logic of "add product in a category" based on category rule.
After add rule, When I save category, it redirects to
http://host/admin/catalog/category/save/key/cae5eaa5332d3c8a4be400eb667530bfba2727445ce1a072d5f006f4a9f10be4/ but in that controller I'm not seeing any add product logic, in that controller dispatch event
catalog_category_prepare_save while check I found one observer
vendor/magento/module-visual-merchandiser/Observer/CategorySaveMerchandiserData.php are listening to this event, I have checked that observer too but I can't found where it is the add product logic.
Please help me to identify.