Log in
Collection

Grid\Collection

Magento\Sales\Model\ResourceModel\Grid\Collection

What it does

This class provides a specialized collection for displaying sales documents (orders, invoices, shipments, credit memos) in Magento 2 admin grids.

It implements SearchResultInterface to support search and filtering capabilities in grid views.

Developers use this as a base class when creating custom grid collections for sales-related entities that need to support aggregations, search criteria, and pagination.

Public Methods

  • getAggregations()
  • setAggregations()
  • getAllIds()
  • getSearchCriteria()
  • setSearchCriteria()
  • getTotalCount()
  • setTotalCount()
  • setItems()