‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector Class Reference

Public Member Functions

 __construct (private readonly Locales $locales)
 
 populateAvailableSystemLanguagesForBackend (array &$fieldInformation)
 
 populateAvailableSiteLanguages (array &$fieldInformation)
 

Protected Member Functions

 getAllSites ()
 
 getBackendUser ()
 

Detailed Description

Provides ItemProcFunc fields for special population of available TYPO3 system languages

Definition at line 29 of file TcaSystemLanguageCollector.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::__construct ( private readonly Locales  $locales)

Definition at line 31 of file TcaSystemLanguageCollector.php.

Member Function Documentation

◆ getAllSites()

TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::getAllSites ( )
protected

◆ getBackendUser()

TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::getBackendUser ( )
protected

◆ populateAvailableSiteLanguages()

TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::populateAvailableSiteLanguages ( array &  $fieldInformation)

Provides a list of all languages available for ALL sites. In case no site configuration can be found in the system, a fallback is used to add at least the default language.

Used by be_users and be_groups for their allowed_languages column.

Definition at line 62 of file TcaSystemLanguageCollector.php.

References $languages, TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector\getAllSites(), and TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector\getBackendUser().

◆ populateAvailableSystemLanguagesForBackend()

TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::populateAvailableSystemLanguagesForBackend ( array &  $fieldInformation)

Populate languages and group by available languages of the Language packs

Definition at line 38 of file TcaSystemLanguageCollector.php.