Feature: #67875 - Override CategoryRegistry entries¶
makeCategorizable method of the
class has been extended with a new parameter
override to set a new category configuration for
an already registered table / field combination.
If the parameter is set to
TRUE, previously defined registry entries are cleared for the
current table / field combination before adding the new configuration.
The intended usecase for this method is to add additional TCA types for a previously registered table.
A good example is the
The basic TCA is defined in the
After the processing of the normal TCA definition, the default categorized tables (from the install tool setting
SYS/defaultCategorizedTables) are initialized and the categories tab is added to the
showitemconfiguration for all TCA types that exist so far.
Now the TCA overrides are processed. The
css_styled_contentExtension defines additional TCA types. After the types are defined the
addOrOverride()method is called to add the category tab to them.
The current behavior of the existing functionality is not changed. Only new functionality is added.
// This example is from the tt_content TCA overrides file from the css_styled_content Extension. \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('css_styled_content', 'tt_content', 'categories', array(), TRUE);