Light
Dark
# typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
public static function addToInsertRecords($table, $content_table = 'tt_content', $content_field = 'records')
{
if (is_array($GLOBALS['TCA'][$content_table]['columns']) && isset($GLOBALS['TCA'][$content_table]['columns'][$content_field]['config']['allowed'])) {
$GLOBALS['TCA'][$content_table]['columns'][$content_field]['config']['allowed'] .= ',' . $table;
}
}
# news/Configuration/TCA/tx_news_domain_model_news.php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_news_domain_model_news');
# typo3conf/AdditionalConfiguration.php
// sets records allowed only tt_content
$GLOBALS['TCA']['tt_content']['columns']['records']['config']['allowed'] = 'tt_content';