LinkProcessor
Magento\CatalogImportExport\Model\Import\Product\LinkProcessor
What it does
This class handles the import and processing of product links (related, up-sell, cross-sell, etc.) during Magento 2 product imports.
Developers use this when importing products that have relationships with other products, ensuring links are properly validated, saved to the database, and orphaned links are handled.
It processes link data from import files and maintains link positions and types between products.
Public Methods
- saveLinks()
- addNameToIds()