public static function disabledCriteria()
    {
        $reasons = array();
        if (!Director::isDev()) {
            $reasons[] = 'Not in dev mode';
        }
        if (self::isDisabled()) {
            $reasons[] = 'Disabled by a constant or configuration';
        }
        if (self::vendorNotInstalled()) {
            $reasons[] = 'DebugBar is not installed in vendors';
        }
        if (self::notLocalIp()) {
            $reasons[] = 'Not a local ip';
        }
        if (Director::is_cli()) {
            $reasons[] = 'In CLI mode';
        }
        if (self::isDevUrl()) {
            $reasons[] = 'Dev tools';
        }
        if (self::isAdminUrl() && !self::config()->get('enabled_in_admin')) {
            $reasons[] = 'In admin';
        }
        if (isset($_GET['CMSPreview'])) {
            $reasons[] = 'CMS Preview';
        }
        return $reasons;
    }
public static function disabledCriteria()
    {
        $reasons = array();
        if (!Director::isDev()) {
            $reasons[] = 'Not in dev mode';
        }
        if (self::isDisabled()) {
            $reasons[] = 'Disabled by a constant or configuration';
        }
        if (self::vendorNotInstalled()) {
            $reasons[] = 'DebugBar is not installed in vendors';
        }
        if (self::notLocalIp()) {
            $reasons[] = 'Not a local ip';
        }
        if (Director::is_cli()) {
            $reasons[] = 'In CLI mode';
        }
        if (self::isDevUrl()) {
            $reasons[] = 'Dev tools';
        }
        if (self::isAdminUrl() && !self::config()->get('enabled_in_admin')) {
            $reasons[] = 'In admin';
        }
        if (isset($_GET['CMSPreview'])) {
            $reasons[] = 'CMS Preview';
        }
        return $reasons;
    }
public static function disabledCriteria ( ) { $ reasons = array ( ) ; if ( ! Director :: isDev ( ) ) { $ reasons [ ] = 'Not in dev mode' ; } if ( self :: isDisabled ( ) ) { $ reasons [ ] = 'Disabled by a constant or configuration' ; } if ( self :: vendorNotInstalled ( ) ) { $ reasons [ ] = 'DebugBar is not installed in vendors' ; } if ( self :: notLocalIp ( ) ) { $ reasons [ ] = 'Not a local ip' ; } if ( Director :: is_cli ( ) ) { $ reasons [ ] = 'In CLI mode' ; } if ( self :: isDevUrl ( ) ) { $ reasons [ ] = 'Dev tools' ; } if ( self :: isAdminUrl ( ) && ! self :: config ( ) -> get ( 'enabled_in_admin' ) ) { $ reasons [ ] = 'In admin' ; } if ( isset ( $ _GET [ 'CMSPreview' ] ) ) { $ reasons [ ] = 'CMS Preview' ; } return $ reasons ; }
Get all criteria why the DebugBar could be disabled

@return array
Get all criteria why the DebugBar could be disabled