Log in
Interface

TotalsInterface

Magento\Backend\Model\Widget\Grid\TotalsInterface

What it does

This interface defines a contract for calculating totals in Magento 2 admin grid widgets.

Developers implement this interface when they need to add summary rows or aggregate calculations (like sum, average, count) at the bottom of admin grid tables, such as displaying total sales or order counts.

Public Methods

  • countTotals()