ListResult
Magento\Catalog\Model\ProductLink\Data\ListResult
What it does
This class represents a result container for product link list operations in Magento 2.
It allows developers to handle both successful results (an array of ProductLinkInterface objects) and error states (Throwable exceptions) in a single, consistent return type.
Developers use this when working with bulk product link operations where they need to capture either the list of links or any errors that occurred during retrieval.
Public Methods
- getResult()
- getError()