Get Default Language
Function: getDefaultLanguage
Visibility: public static
Parameter: getDefaultLanguage($returnDescription)
Description:
Will get our default language that was configured on config.
Parameters:
(optional) - bool|false - $returnDescription - Decides if we want to include the description of the language.
Return:
string|array - The default language code.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Let's say that we forgot what's the default language of the site, what a bummer.
How to call (example):
Possible outcome (example):
Output: