LanguageFactory

Implements LanguageFactoryInterface

Default factory for creating language objects

since

4.0.0

package

Application

Methods

createLanguage

Method to get an instance of a language.

createLanguage(string lang, bool debug = false) : \Joomla\CMS\Language\Language
since

4.0.0

Arguments

lang

stringThe language to use

debug

boolThe debug mode

Response

\Joomla\CMS\Language\Language