Model
Period
Magento\Backend\Model\Dashboard\Period
What it does
This class provides configuration for dashboard time periods and their display units in the Magento admin panel.
Developers use it to get available date range options (today, last 24 hours, 7 days, etc.) and determine how data should be grouped on charts (by hour, day, or month).
It's primarily used when building or customizing admin dashboard reports and analytics.
Public Methods
- getDatePeriods()
- getPeriodChartUnits()