CachingLanguageFactory

Extends LanguageFactory

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

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
inherited
since

4.0.0

Arguments

lang

stringThe language to use

debug

boolThe debug mode

Response

\Joomla\CMS\Language\Language

Properties

languages

Array of Language objects

static
since

4.0.0

Type(s)

Language[]