Model
GetCategories
Magento\Catalog\Model\ResourceModel\Product\GetCategories
What it does
This class retrieves all category IDs associated with a given list of product IDs across all stores.
Developers use this when they need to find which categories contain specific products, such as for cache invalidation, index updates, or determining product-category relationships for display or filtering purposes.
Public Methods
- execute()