App\Services\Locale\CurrentLocale::getContentLocale PHP Метод

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

public static getContentLocale ( ) : string
Результат string
    public static function getContentLocale() : string
    {
        if (!static::isValidLocale(locale())) {
            return config('app.locales')[0];
        }
        return locale();
    }

Usage Example

Пример #1
0
function content_locale() : string
{
    return \App\Services\Locale\CurrentLocale::getContentLocale();
}