Log in
Model

CanViewNotification

Magento\AdminAnalytics\Model\Condition\CanViewNotification

What it does

This class controls whether the admin analytics notification popup should be displayed to administrators.

It checks if a user has already viewed the notification by querying a log table and uses caching to optimize performance.

Developers would use this to conditionally show/hide the admin analytics usage notification in the Magento admin panel.

Public Methods

  • isVisible()
  • getName()