AbstractCollection
Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection
What it does
This class serves as the base collection for Magento 2 catalog entities (products, categories) that need to work across multiple stores.
Developers use this when building collections that need to retrieve EAV attribute values from different store views, automatically handling store-specific and default values.
It manages store scope context and provides methods to load attributes with proper store fallback logic.
Public Methods
- _resetState()
- setStore()
- setStoreId()
- getStoreId()
- getDefaultStoreId()