Model
AggregateCount
Magento\Catalog\Model\ResourceModel\Category\AggregateCount
What it does
This class handles updating parent category counters when a child category is deleted in Magento 2.
It automatically decrements the children_count field for all parent categories in the hierarchy, ensuring the category tree maintains accurate child counts.
Developers typically don't call this directly as it's invoked automatically during category deletion operations.
Public Methods
- processDelete()