From 879107d9ffa98f7b2305589b54841eb8df6e94aa Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Wed, 16 Oct 2024 11:49:40 +0200 Subject: [PATCH] [TASK] Reflect codeEditor langauge based on selection --- .../CodeEditorFormatDataProvider.php | 32 +++++++++++++++++++ ext_localconf.php | 10 ++++++ 2 files changed, 42 insertions(+) create mode 100644 Classes/Form/DataProvider/CodeEditorFormatDataProvider.php diff --git a/Classes/Form/DataProvider/CodeEditorFormatDataProvider.php b/Classes/Form/DataProvider/CodeEditorFormatDataProvider.php new file mode 100644 index 0000000..2554c7d --- /dev/null +++ b/Classes/Form/DataProvider/CodeEditorFormatDataProvider.php @@ -0,0 +1,32 @@ + 'EXT:syntax/Resources/Public/Icons/ContentElements/content-element-syntax.svg'] ); + +$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord'][CodeEditorFormatDataProvider::class] = [ + 'depends' => [ + TcaColumnsOverrides::class, + EvaluateDisplayConditions::class, + ], +];