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

Public Member Functions

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

Protected Member Functions

 getAllSites ()
 
 getBackendUser ()
 

Private Attributes

Locales $locales
 

Detailed Description

Provides ItemProcFunc fields for special population of available TYPO3 system languages

Definition at line 30 of file TcaSystemLanguageCollector.php.

Constructor & Destructor Documentation

◆ __construct()

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

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 71 of file TcaSystemLanguageCollector.php.

References 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 42 of file TcaSystemLanguageCollector.php.

References $GLOBALS, and TYPO3\CMS\Core\Core\Environment\getLabelsPath().

Member Data Documentation

◆ $locales

Locales TYPO3\CMS\Core\Localization\TcaSystemLanguageCollector::$locales
private