Skip to content
Snippets Groups Projects
Commit c8517834 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Move TCA instructions out of ext_tables if they do not belong there

parent 7e61c6ed
No related branches found
No related tags found
1 merge request!23Feature upgrade to typo3 10
......@@ -26,6 +26,10 @@
return call_user_func(
function ($extKey, $table) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_sgjobs_domain_model_job',
''
);
return [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table . '',
......@@ -71,7 +75,8 @@ return call_user_func(
employment_types,
--palette--;;palette_seo_dates,
--palette--;;palette_salary,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime,
--div--;LLL:EXT:languagevisibility/Resources/Private/Language/locallang_db.xml:tabname, tx_languagevisibility_visibility',
],
],
'palettes' => [
......
......@@ -69,11 +69,5 @@ call_user_func(
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:' . $extKey . '/Resources/Public/Icons/module-sgjobs.svg']
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'tx_sgjobs_domain_model_job',
'--div--;LLL:EXT:languagevisibility/Resources/Private/Language/locallang_db.xml:tabname, tx_languagevisibility_visibility'
);
}, 'sg_jobs'
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment