Log in
Repository

CategoryRepositoryInterface

Magento\Catalog\Api\CategoryRepositoryInterface

What it does

This interface defines the contract for managing category data in Magento 2's catalog system.

Developers use this repository to perform CRUD operations on categories, including creating/updating categories, retrieving category information by ID, and deleting categories either by object or ID.

It provides a standardized API for category management that can be used in custom modules, plugins, or API integrations.

Public Methods

  • save()
  • get()
  • delete()
  • deleteByIdentifier()