ProductRepositoryInterface
Magento\Catalog\Api\ProductRepositoryInterface
What it does
This interface defines the contract for managing product data in Magento 2's catalog system.
Developers use this repository to perform CRUD operations on products - creating/updating via save(), retrieving products by SKU or ID, deleting products, and searching products using criteria.
It's the primary API for programmatically working with product data in extensions, integrations, and custom modules.
Public Methods
- save()
- get()
- getById()
- delete()
- deleteById()
- getList()