Language fields¶
New in version 11.2: The TCA field type called language
has been added to TYPO3 Core.
New in version 13.0: When using the language
type, TYPO3 takes care of
generating the according database field.
A developer does not need to define this field in an extension's
ext_tables.sql
file.
This field type displays all languages available in the current site context. Outside of the site context it displays all languages available in the installation.
A special language All languages is automatically added.
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_basic.php¶
[
'columns' => [
'sys_language_uid' => [
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'language',
],
],
],
]