Collection
Stock\Collection
Magento\ProductAlert\Model\ResourceModel\Stock\Collection
What it does
This collection class manages product stock alert subscriptions in Magento 2, allowing retrieval and filtering of customer alerts for when out-of-stock products become available again.
Developers use this to fetch stock alert data filtered by website, alert status, or ordered by customer ID, typically when processing back-in-stock notifications or displaying customer alert subscriptions.
Public Methods
- addWebsiteFilter()
- addStatusFilter()
- setCustomerOrder()