Contao\Message::hasError PHP Метод

hasError() публичный статический Метод

Check if there are error messages
public static hasError ( string $strScope = TL_MODE ) : boolean
$strScope string An optional message scope
Результат boolean True if there are error messages
    public static function hasError($strScope = TL_MODE)
    {
        return \System::getContainer()->get('session')->getFlashBag()->has(static::getFlashBagKey('error', $strScope));
    }