Piwik\Notification\Manager::saveNotificationAcrossUiRequestsIfNeeded PHP Method

saveNotificationAcrossUiRequestsIfNeeded() private static method

private static saveNotificationAcrossUiRequestsIfNeeded ( $id, Notification $notification )
$notification Piwik\Notification
    private static function saveNotificationAcrossUiRequestsIfNeeded($id, Notification $notification)
    {
        if (self::isSessionEnabled()) {
            // we need to save even non persistent notifications if possible. Otherwise if there's a redirect
            // a notification is not shown on the next page view
            $session = static::getSession();
            $session->notifications[$id] = $notification;
        }
    }