Action
Magento\Catalog\Model\Product\Action
What it does
This class handles mass actions on multiple products at once, such as updating product attributes or managing website assignments.
Developers use this when they need to perform bulk operations on products, like changing prices or stock status for multiple products simultaneously, or adding/removing products from specific websites in a multi-store setup.
It automatically handles reindexing after operations to ensure search and category displays remain accurate.
Public Methods
- updateAttributes()
- updateWebsites()