Bestsellers
Magento\Sales\Model\ResourceModel\Report\Bestsellers
What it does
This class manages the aggregation and generation of bestseller product reports in Magento 2.
Developers would use this to collect sales data from orders and calculate which products are selling best, organized by daily, monthly, and yearly periods.
The aggregate() method processes order data to populate the bestsellers report tables that power analytics and reporting features in the admin panel.
Public Methods
- aggregate()