Commit a0a9f252 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Use strings instead of variables for TCA configuration

parent ccaeaa1d
......@@ -24,10 +24,6 @@
* This copyright notice MUST APPEAR in all copies of the script!
*/
call_user_func(
function ($extKey, $table) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
$extKey, 'Configuration/TypoScript/Frontend', 'Contentlink'
);
}, 'sg_contentlink', 'sys_template'
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'sg_contentlink', 'Configuration/TypoScript/Frontend', 'Contentlink'
);
......@@ -24,25 +24,23 @@
* This copyright notice MUST APPEAR in all copies of the script!
*/
call_user_func(
function ($extKey, $table) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
$table, [
'tx_sgcontentlink_contentlink' => [
'displayCond' => \SGalinski\SgContentlink\TCA\TcaProvider::getAllowedTypesForTcaDisplayCond(),
'exclude' => 1,
'label' => 'LLL:EXT:sg_contentlink/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sgcontentlink_contentlink',
'config' => [
'type' => 'input',
'renderType' => 'inputLink'
]
]
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
'tt_content', [
'tx_sgcontentlink_contentlink' => [
'displayCond' => \SGalinski\SgContentlink\TCA\TcaProvider::getAllowedTypesForTcaDisplayCond(),
'exclude' => 1,
'label' => 'LLL:EXT:sg_contentlink/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sgcontentlink_contentlink',
'config' => [
'type' => 'input',
'renderType' => 'inputLink'
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
$table, '--linebreak--LLL:EXT:sg_contentlink/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sgcontentlink_contentlink,tx_sgcontentlink_contentlink', '', 'after:subheader'
);
]
]
);
}, 'sg_contentlink', 'tt_content'
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tt_content',
'--linebreak--LLL:EXT:sg_contentlink/Resources/Private/Language/locallang_db.xlf:tt_content.tx_sgcontentlink_contentlink,tx_sgcontentlink_contentlink',
'',
'after:subheader'
);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment