ListResultInterface
Magento\Catalog\Model\ProductLink\Data\ListResultInterface
What it does
This interface defines a contract for handling the results of product link list retrieval operations in Magento 2.
Developers use this when fetching related products, up-sells, cross-sells, or other product associations, as it provides a standardized way to access either the successful result array or any error that occurred during retrieval.
It implements an error-handling pattern that allows graceful failure management when working with product relationships.
Public Methods
- getResult()
- getError()