Log in
Model

Rule

Magento\CatalogWidget\Model\Rule

What it does

This class defines a rule model for Catalog Widgets that enables product filtering through conditions.

Developers use it when creating catalog product list widgets (like featured products or new arrivals) where products need to be selected based on specific attribute conditions like category, price, or stock status.

Public Methods

  • getConditionsInstance()
  • getActionsInstance()