Model
CategoryRepository
Magento\Catalog\Model\CategoryRepository
What it does
The CategoryRepository class is the main service for managing category data in Magento 2.
Developers use this class to save, retrieve, and delete category entities through a consistent API interface.
It handles caching, validation, and ensures proper store context when working with categories programmatically.
Public Methods
- save()
- get()
- delete()
- deleteByIdentifier()
- _resetState()