Log in
Model

PeriodValue

Magento\Quote\Model\Backpressure\Config\PeriodValue

What it does

This class validates the backpressure period configuration value before it's saved in the Magento admin panel.

It ensures that only valid period options (defined in PeriodSource) can be selected for rate limiting, throwing an error if an invalid value is attempted.

Developers would encounter this when configuring quote-related backpressure settings to control API request rates.

Public Methods

  • beforeSave()