Log in
Model

Tree

Magento\Catalog\Model\ResourceModel\Category\Tree

What it does

This class manages the hierarchical tree structure of Magento categories, providing methods to load, organize, and manipulate category data with their parent-child relationships.

Developers use this to build category navigation menus, breadcrumbs, and retrieve category hierarchies with attributes like name, active status, and product counts.

It handles store-specific data and can filter active/inactive categories while maintaining the tree structure.

Public Methods

  • setStoreId()
  • getStoreId()
  • addCollectionData()
  • addInactiveCategoryIds()
  • getInactiveCategoryIds()
  • getCollection()
  • setCollection()
  • move()
  • loadByIds()
  • loadBreadcrumbsArray()
  • getExistingCategoryIdsBySpecifiedIds()