Log in
Model

DateApplier

Magento\SalesRule\Model\ResourceModel\Rule\DateApplier

What it does

This class applies date range filters to database queries for sales rules.

Developers use it to ensure only active sales rules (within their from_date and to_date range) are retrieved from the database.

It's typically used internally by the SalesRule module when loading applicable promotions and discount rules.

Public Methods

  • applyDate()