src/Graviton/DocumentBundle/Entity/Translatable.php
public static function getDefaultLanguage()
    {
        if (!is_null(self::$defaultLanguage)) {
            return self::$defaultLanguage;
        }

        if (!file_exists(self::$defaultLanguageFile)) {
            throw new \LogicException('Default language file '.self::$defaultLanguageFile.' does not exist');
        }

        self::$defaultLanguage = file_get_contents(self::$defaultLanguageFile);
        return self::$defaultLanguage;
    }
public static function getDefaultLanguage()
    {
        if (!is_null(self::$defaultLanguage)) {
            return self::$defaultLanguage;
        }

        if (!file_exists(self::$defaultLanguageFile)) {
            throw new \LogicException('Default language file '.self::$defaultLanguageFile.' does not exist');
        }

        self::$defaultLanguage = file_get_contents(self::$defaultLanguageFile);
        return self::$defaultLanguage;
    }
public static function getDefaultLanguage ( ) { if ( ! is_null ( self :: $ defaultLanguage ) ) { return self :: $ defaultLanguage ; } if ( ! file_exists ( self :: $ defaultLanguageFile ) ) { throw new \ LogicException ( 'Default language file ' . self :: $ defaultLanguageFile . ' does not exist' ) ; } self :: $ defaultLanguage = file_get_contents ( self :: $ defaultLanguageFile ) ; return self :: $ defaultLanguage ; }
returns the default language as statically generated in a file

@return string default language
returns the default language as statically generated in a file