LanguageFactory

Implements \Joomla\CMS\Language\LanguageFactoryInterface

Default factory for creating language objects

since

4.0.0

Methods

createLanguage

Method to get an instance of a language.

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

4.0.0

Arguments

$lang

stringThe language to use

$debug

booleanThe debug mode

Response

\Joomla\CMS\Language\Language