Log in
Model

CategoryManagement

Magento\Catalog\Model\CategoryManagement

What it does

This class manages category tree operations in Magento 2, providing functionality to retrieve category hierarchies, move categories to different parent locations, and count total categories.

Developers use this class when they need to programmatically manipulate the category structure, such as building navigation menus, reorganizing category trees, or getting category counts for reporting.

Public Methods

  • getTree()
  • move()
  • getCount()