Log in
Interface

ProductSearchResultsInterface

Magento\Catalog\Api\Data\ProductSearchResultsInterface

What it does

This interface defines the contract for product search results in Magento 2's service layer.

Developers use it when implementing or consuming product repository search methods to ensure consistent handling of paginated product collections with metadata like total count and search criteria.

It extends the base SearchResultsInterface and specifies that items must be ProductInterface objects.

Public Methods

  • getItems()
  • setItems()