Log in
Model

ReportStatus

Magento\Reports\Model\ReportStatus

What it does

This class checks whether specific report types are enabled in Magento's system configuration.

Developers use it to verify if product view, cart additions, wishlist, comparison, and other tracking reports are active before logging or displaying report data.

It validates the event type and returns true only if both the global reports setting and the specific event type are enabled.

Public Methods

  • isReportEnabled()