Grid\Collection
Magento\Sales\Model\ResourceModel\Grid\Collection
What it does
This class serves as a base collection for displaying sales document grids (orders, invoices, shipments, credit memos) in Magento 2's admin panel.
It implements SearchResultInterface to support API-style search functionality and aggregations for filtering and reporting.
Developers extend this class when creating custom grid collections for sales-related entities that need to work with Magento's UI components and search framework.
Public Methods
- getAggregations()
- setAggregations()
- getAllIds()
- getSearchCriteria()
- setSearchCriteria()
- getTotalCount()
- setTotalCount()
- setItems()