Log in
Interface

SortableBySaleabilityInterface

Magento\InventoryCatalogApi\Model\SortableBySaleabilityInterface

What it does

This interface defines a contract for determining whether product collections can be sorted by saleability (stock availability).

Developers implement this interface in classes that need to control whether products should be sortable by their in-stock/out-of-stock status, commonly used in product listing pages and search results to show available products first.

Public Methods

  • isSortableBySaleability()