CachingLanguageFactory

Extends \Joomla\CMS\Language\LanguageFactory

Caching factory for creating language objects. The requested languages are cached in memory.

since

4.0.0

Methods

createLanguage

Method to get an instance of a language.

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

4.0.0

Arguments

$lang

stringThe language to use

$debug

booleanThe debug mode

Response

\Joomla\CMS\Language\Language

Properties

languages

Array of Language objects

static
since

4.0.0

Type(s)

array<mixed,\Joomla\CMS\Language\Language>