2019-11-13 23:40:26 +01:00
|
|
|
<?php
|
|
|
|
|
2019-12-13 12:11:32 +01:00
|
|
|
(function (string $extensionKey, string $tableName) {
|
2019-11-13 23:40:26 +01:00
|
|
|
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
|
|
|
|
$extensionKey,
|
|
|
|
'Configuration/PageTSconfig/Index.tsconfig',
|
|
|
|
$extensionKey
|
|
|
|
);
|
2019-12-13 12:11:32 +01:00
|
|
|
|
|
|
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['TCA'][$tableName], [
|
|
|
|
'columns' => [
|
|
|
|
'lastUpdated' => [
|
|
|
|
'config' => [
|
|
|
|
'eval' => 'date,int',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
})('ds_site', 'pages');
|