Interface
CategoryLinkInterface
Magento\Catalog\Api\Data\CategoryLinkInterface
What it does
This interface defines the contract for linking products to categories in Magento 2.
Developers use this when managing product-category relationships through the API, allowing them to assign products to categories with specific positions.
It's commonly used in product import/export operations, REST/SOAP API integrations, and programmatic category assignment.
Public Methods
- getPosition()
- setPosition()
- getCategoryId()
- setCategoryId()
- getExtensionAttributes()
- setExtensionAttributes()