Model

Managestock

Magento\CatalogInventory\Model\Config\Backend\Managestock

What it does

This class handles the backend logic when the 'Manage Stock' configuration setting is changed in Magento admin.

When a store administrator enables or disables inventory management system-wide, this class automatically marks the stock indexer as invalid to trigger a reindex, ensuring inventory data stays synchronized across the system.

Public Methods

  • afterSave()