Contao\Message::hasNew PHP Method

hasNew() public static method

Check if there are new messages
public static hasNew ( string $strScope = TL_MODE ) : boolean
$strScope string An optional message scope
return boolean True if there are new messages
    public static function hasNew($strScope = TL_MODE)
    {
        return \System::getContainer()->get('session')->getFlashBag()->has(static::getFlashBagKey('new', $strScope));
    }