Log in
Model

ListResult

Magento\Catalog\Model\ProductLink\Data\ListResult

What it does

This class serves as a data transfer object (DTO) that encapsulates the result of product link list operations.

Developers use it to handle both successful results (array of ProductLinkInterface objects) and error scenarios in a type-safe way, ensuring that either valid data or an error is always present but never both.

Public Methods

  • getResult()
  • getError()