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\Core\Localization\LanguageService::loadSingleTableDescription().

The content of the $TCA_DESCR array can be reviewed in the System > Configuration module:

Content of the $TCA\_DESCR array

List of file references for the CSH labels of the "pages" table

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]
Copied!

For the Web > Info module, the key is:

_MOD_web_info
Copied!

The loaded labels will be available in $TCA_DESCR[(key)]['columns'].