Log in
Helper

Data

Magento\Backend\Helper\Dashboard\Data

What it does

This helper class provides utility methods for Magento 2's admin dashboard, including retrieving store collections, counting stores, managing date periods for dashboard graphs, and generating secure data hashes for chart data validation.

Developers use this when building or customizing admin dashboard widgets that need store information or need to verify the integrity of dashboard chart data.

Public Methods

  • getStores()
  • countStores()
  • getDatePeriods()
  • getChartDataHash()