Tree
Magento\Catalog\Model\ResourceModel\Category\Tree
What it does
This class manages the hierarchical category tree structure in Magento 2.
Developers use it to load, move, and retrieve category data in tree format, including breadcrumbs, parent-child relationships, and product counts.
It's essential for building navigation menus, category management features, and any functionality requiring the full category hierarchy with associated attributes.
Public Methods
- setStoreId()
- getStoreId()
- addCollectionData()
- addInactiveCategoryIds()
- getInactiveCategoryIds()
- getCollection()
- setCollection()
- move()
- loadByIds()
- loadBreadcrumbsArray()
- getExistingCategoryIdsBySpecifiedIds()