Get Available Languages
Function: getAvailableLanguages
Visibility: public static
Parameter: getAvailableLanguages($withoutCurrent)
Description:
Get's all available languages on the site - Configured at lang/parameters/available.
Parameters:
(optional) - bool|false - $withoutCurrent - Decides if we want to include the current language.
Return:
array - All languages including the default one.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
We want to show all available languages and output it so we can make jokes behind your back.
How to call (example):
Possible outcome (example):
Output: