2021-02-01 09:36:44 +01:00
|
|
|
<?php
|
|
|
|
|
2021-02-01 14:14:05 +01:00
|
|
|
defined('TYPO3') or die();
|
|
|
|
|
2021-02-01 09:36:44 +01:00
|
|
|
(static function (string $extensionKey, string $tableName) {
|
2021-02-03 17:20:01 +01:00
|
|
|
$languagePath = \WerkraumMedia\ThueCat\Extension::getLanguagePath() . 'locallang_be.xlf:' . $tableName . '.';
|
2021-02-01 09:36:44 +01:00
|
|
|
|
|
|
|
\TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($GLOBALS['SiteConfiguration']['site'], [
|
|
|
|
'columns' => [
|
|
|
|
'thuecat_api_key' => [
|
|
|
|
'label' => $languagePath . 'thuecat_api_key',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'types' => [
|
|
|
|
'0' => [
|
|
|
|
'showitem' => $GLOBALS['SiteConfiguration']['site']['types']['0']['showitem']
|
|
|
|
. ', ' . implode(',', [
|
|
|
|
'--div--;' . $languagePath . 'div.thuecat',
|
|
|
|
'thuecat_api_key',
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
]);
|
2021-02-01 14:14:05 +01:00
|
|
|
})(\WerkraumMedia\ThueCat\Extension::EXTENSION_KEY, 'site');
|