Log in
Model

Tree

Magento\Catalog\Model\Category\Tree

What it does

This class retrieves and manages category data in a hierarchical tree structure for Magento's catalog system.

Developers use it to get the category tree starting from a root node, with options to control tree depth and load category attributes like name, active status, and product counts.

It's commonly used when building navigation menus, category listings, or any feature requiring structured category hierarchies.

Public Methods

  • getRootNode()
  • getTree()