Category\Collection
Magento\Catalog\Model\ResourceModel\Category\Collection
What it does
This class manages collections of product categories in Magento 2.
Developers use it to retrieve, filter, and manipulate groups of categories with methods like addIsActiveFilter(), addPathFilter(), and loadProductCount().
It's commonly used in catalog navigation, category listings, and anywhere you need to work with multiple categories at once, such as building menus or category trees.
Public Methods
- _resetState()
- addIdFilter()
- setLoadProductCount()
- setProductStoreId()
- getProductStoreId()
- load()
- loadProductCount()
- addPathFilter()
- joinUrlRewrite()
- addIsActiveFilter()
- addNameToResult()
- addUrlRewriteToResult()
- addPathsFilter()
- addLevelFilter()
- addRootLevelFilter()
- addNavigationMaxDepthFilter()
- addOrderField()
- getProductWebsiteTable()
- getProductTable()