Log in
Repository

CategoryRepositoryInterface

Magento\Catalog\Api\CategoryRepositoryInterface

What it does

This interface defines the contract for managing category operations in Magento 2's Catalog module.

Developers use this repository to perform CRUD operations on categories - creating/updating categories with save(), retrieving category data with get(), and deleting categories either by passing a category object or by ID.

It serves as the standard API for any code that needs to interact with product categories programmatically.

Public Methods

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