‪TYPO3CMS  10.4
TYPO3\CMS\Core\Localization\LanguageServiceFactory Class Reference

Public Member Functions

 __construct (Locales $locales, LocalizationFactory $localizationFactory)
 
LanguageService create (string $locale)
 
 createFromUserPreferences (?AbstractUserAuthentication $user)
 

Protected Attributes

Locales $locales
 
LocalizationFactory $localizationFactory
 

Detailed Description

Definition at line 25 of file LanguageServiceFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::__construct ( Locales  $locales,
LocalizationFactory  $localizationFactory 
)

Member Function Documentation

◆ create()

LanguageService TYPO3\CMS\Core\Localization\LanguageServiceFactory::create ( string  $locale)

Factory method to create a language service object.

Parameters
string$locale‪the locale (= the TYPO3-internal locale given)
Returns
LanguageService

Definition at line 47 of file LanguageServiceFactory.php.

Referenced by TYPO3\CMS\Core\Localization\LanguageServiceFactory\createFromUserPreferences().

◆ createFromUserPreferences()

TYPO3\CMS\Core\Localization\LanguageServiceFactory::createFromUserPreferences ( ?AbstractUserAuthentication  $user)

Member Data Documentation

◆ $locales

Locales TYPO3\CMS\Core\Localization\LanguageServiceFactory::$locales
protected

◆ $localizationFactory

LocalizationFactory TYPO3\CMS\Core\Localization\LanguageServiceFactory::$localizationFactory
protected