From c8517834d607c9b3a716c05a64dd1e1bbce9ab11 Mon Sep 17 00:00:00 2001 From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de> Date: Tue, 28 Jul 2020 14:36:55 +0200 Subject: [PATCH] [TASK] Move TCA instructions out of ext_tables if they do not belong there --- Configuration/TCA/tx_sgjobs_domain_model_job.php | 7 ++++++- ext_tables.php | 6 ------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Configuration/TCA/tx_sgjobs_domain_model_job.php b/Configuration/TCA/tx_sgjobs_domain_model_job.php index e84e11d5..73f7491a 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_job.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_job.php @@ -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' => [ diff --git a/ext_tables.php b/ext_tables.php index e6602b19..8da8a37a 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -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' ); -- GitLab