LanguageServiceFactory
Table of Contents
Properties
Methods
- __construct() : mixed
- create() : LanguageService
- Factory method to create a language service object.
- createFromSiteLanguage() : LanguageService
- createFromUserPreferences() : LanguageService
Properties
$locales
protected
Locales
$locales
$localizationFactory
protected
LocalizationFactory
$localizationFactory
$runtimeCache
protected
FrontendInterface
$runtimeCache
Methods
__construct()
public
__construct(Locales $locales, LocalizationFactory $localizationFactory, FrontendInterface $runtimeCache) : mixed
Parameters
- $locales : Locales
- $localizationFactory : LocalizationFactory
- $runtimeCache : FrontendInterface
create()
Factory method to create a language service object.
public
create(string $locale) : LanguageService
Parameters
- $locale : string
-
the locale (= the TYPO3-internal locale given)
Return values
LanguageServicecreateFromSiteLanguage()
public
createFromSiteLanguage(SiteLanguage $language) : LanguageService
Parameters
- $language : SiteLanguage
Return values
LanguageServicecreateFromUserPreferences()
public
createFromUserPreferences(AbstractUserAuthentication|null $user) : LanguageService
Parameters
- $user : AbstractUserAuthentication|null