@@ -56,12 +56,21 @@ public function processEvent(ModifyNewContentElementWizardItemsEvent $event): vo
5656 ) {
5757 continue ;
5858 }
59- $ fceWizardItems ['fce_ ' . $ combinedMappingIdentifier ] = [
60- 'iconIdentifier ' => ($ mappingConfiguration ->getIconIdentifier () ?: 'extensions-templavoila-template-default ' ),
61- 'description ' => TemplaVoilaUtility::getLanguageService ()->sL ($ mappingConfiguration ->getDescription ()),
62- 'title ' => $ mappingConfiguration ->getName (),
63- 'tt_content_defValues ' => $ this ->getDataHandlerDefaultValues ($ combinedMappingIdentifier ),
64- ];
59+ if (version_compare ((new \TYPO3 \CMS \Core \Information \Typo3Version ())->getVersion (), '13.0.0 ' , '>= ' )) {
60+ $ fceWizardItems ['fce_ ' . $ combinedMappingIdentifier ] = [
61+ 'iconIdentifier ' => ($ mappingConfiguration ->getIconIdentifier () ?: 'extensions-templavoila-template-default ' ),
62+ 'description ' => TemplaVoilaUtility::getLanguageService ()->sL ($ mappingConfiguration ->getDescription ()),
63+ 'title ' => $ mappingConfiguration ->getName (),
64+ 'defaultValues ' => $ this ->getDataHandlerDefaultValues ($ combinedMappingIdentifier ),
65+ ];
66+ } else {
67+ $ fceWizardItems ['fce_ ' . $ combinedMappingIdentifier ] = [
68+ 'iconIdentifier ' => ($ mappingConfiguration ->getIconIdentifier () ?: 'extensions-templavoila-template-default ' ),
69+ 'description ' => TemplaVoilaUtility::getLanguageService ()->sL ($ mappingConfiguration ->getDescription ()),
70+ 'title ' => $ mappingConfiguration ->getName (),
71+ 'tt_content_defValues ' => $ this ->getDataHandlerDefaultValues ($ combinedMappingIdentifier ),
72+ ];
73+ }
6574 }
6675 }
6776 }
0 commit comments