Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Get Default Language

Type: core

Class: Lang

Platform: 2v

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):
Code:
Possible outcome (example):
Output:
Info Panel
Roll it!   ⇔