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 this interface to retrieve all products assigned to a specific category or to assign a product to multiple categories programmatically.

It's commonly used in custom modules, import scripts, or API integrations where you need to manage product-category associations.

Public Methods

  • getAssignedProducts()
  • assignProductToCategories()