Log in
Interface

CategoryLinkManagementInterface

Magento\Catalog\Api\CategoryLinkManagementInterface

What it does

This interface defines methods for managing the relationship between products and categories in Magento 2.

Developers use it to retrieve all products assigned to a specific category or to assign a product to multiple categories.

It's commonly used in custom modules or API integrations when programmatically managing product-category associations.

Public Methods

  • getAssignedProducts()
  • assignProductToCategories()