public function getDefaultLocale()
    {
        $locales = $this->getLocales();

        foreach ($locales as $locale) {
            if ($locale->isDefault()) {
                return $locale;
            }
        }

        return array_pop($locales);
    }
public function getDefaultLocale()
    {
        $locales = $this->getLocales();

        foreach ($locales as $locale) {
            if ($locale->isDefault()) {
                return $locale;
            }
        }

        return array_pop($locales);
    }
public function getDefaultLocale ( ) { $ locales = $ this -> getLocales ( ) ; foreach ( $ locales as $ locale ) { if ( $ locale -> isDefault ( ) ) { return $ locale ; } } return array_pop ( $ locales ) ; }
Returns the default locale based off the localization documentation
specified in the Strata configuration file.
@return Locale
Returns the default locale based off the localization documentation specified in the Strata configuration file .