Piwik\Notification\
Posts and removes UI notifications (see Notification to learn more).
The class defines the following methods:
notify()
— Posts a notification that will be shown in Matomo (formerly Piwik)'s status bar.notify()
Posts a notification that will be shown in Matomo's status bar. If a notification with the same ID
has been posted and has not been closed/removed, it will be replaced with $notification
.
It accepts the following parameter(s):
$id
(string
) —
A unique identifier for this notification. The ID must be a valid HTML element ID. It can only contain alphanumeric characters (underscores can be used).$notification
(Notification
) —
The notification to post.Returns: bool
—
true if the notification was added, false if it was ignored because there were too many
pending ones.