Log in
Model

AbstractGrid

Magento\Sales\Model\ResourceModel\AbstractGrid

What it does

This abstract base class provides common functionality for Magento 2 sales grid tables (like order grids, invoice grids, etc.).

Developers extend this class when creating resource models for sales-related grid tables, gaining standardized database connection handling, table name management, and the ability to purge (delete) grid records.

It's used as a foundation for any custom sales grid implementations that need to sync data from sales entities into indexed grid tables for faster admin UI performance.

Public Methods

  • getConnection()
  • getGridTable()
  • purge()