Repository
CategoryLinkRepositoryInterface
Magento\Catalog\Api\CategoryLinkRepositoryInterface
What it does
This repository interface manages the assignment of products to categories in Magento 2.
Developers use it to programmatically add products to categories, remove product-category assignments, or delete associations using category IDs and product SKUs.
It provides a service layer for managing the relationship between products and categories through API operations.
Public Methods
- save()
- delete()
- deleteByIds()