ConditionInterface
Magento\Catalog\Model\Product\Condition\ConditionInterface
What it does
This interface defines a contract for applying custom conditions to product collections in Magento 2.
Developers implement this interface when they need to filter or modify product collections based on specific business rules, such as inventory conditions, pricing rules, or custom attributes.
The interface provides methods to apply conditions directly to collections or generate SQL SELECT statements for retrieving filtered product IDs.
Public Methods
- applyToCollection()
- getIdsSelect()