Redaxscript\Modules\Demo\Demo::adminPanelNotification PHP Method

adminPanelNotification() public static method

adminPanelNotification
Since: 3.0.0 return array
public static adminPanelNotification ( )
    public static function adminPanelNotification()
    {
        $auth = new Auth(Request::getInstance());
        $auth->init();
        /* demo user */
        if ($auth->getUser('user') === 'demo') {
            self::setNotification('success', Language::get('logged_in') . Language::get('point'));
        }
        return self::getNotification();
    }