Attention
TYPO3 v8 has reached its end-of-life March 31st, 2020 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
There is no further ELTS support. It is recommended that you upgrade your project and use a supported version of TYPO3.
The $TCA_DESCR array¶
The global array $TCA_DESCR
is reserved to contain CSH labels. CSH
labels are loaded as they are needed. Thus the class rendering the
form will make an API call to the global language object to have the
CSH labels loaded - if any - for the relevant table.
Basically, the $TCA_DESCR
array contains references to the
registered language files. As it gets used, it is filled with the
actual labels. This task is performed by method
\TYPO3\CMS\Lang\LanguageService::loadSingleTableDescription()
.
The content of the $TCA_DESCR
array can be reviewed in the
SYSTEM > Configuration module:
As can be seen, several files can be registered for the same table. This makes it possible to:
override existing CSH labels (e.g. for providing more dedicated help)
extending existing labels
add CSH labels for fields added by the extension
Keys in $TCA_DESCR¶
Each file is registered with $TCA_DESCR
using a key. For a
database table, this is simple the table name. For backend modules you
can use the following syntax:
_MOD_[main module]_[module name]
For the WEB > Info module, the key is:
_MOD_web_info
The loaded labels will be available in $TCA_DESCR[(key)]['columns']
.