-call_user_func(function () {
- if (TYPO3_MODE === 'BE') {
- // Register the backend module Web->Forms
- \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
- 'TYPO3.CMS.Form',
- 'web',
- 'formbuilder',
- '',
- [
- 'FormManager' => 'index, show, create, duplicate, references, delete',
- 'FormEditor' => 'index, saveForm, renderFormPage, renderRenderableOptions',
- ],
- [
- 'access' => 'user,group',
- 'icon' => 'EXT:form/Resources/Public/Icons/Extension.png',
- 'labels' => 'LLL:EXT:form/Resources/Private/Language/locallang_module.xlf',
- 'navigationComponentId' => '',
- 'inheritNavigationComponentFromMainModule' => false
- ]
- );
- }
-});
+if (TYPO3_MODE === 'BE') {
+ // Register the backend module Web->Forms
+ \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
+ 'TYPO3.CMS.Form',
+ 'web',
+ 'formbuilder',
+ '',
+ [
+ 'FormManager' => 'index, show, create, duplicate, references, delete',
+ 'FormEditor' => 'index, saveForm, renderFormPage, renderRenderableOptions',
+ ],
+ [
+ 'access' => 'user,group',
+ 'icon' => 'EXT:form/Resources/Public/Icons/Extension.png',
+ 'labels' => 'LLL:EXT:form/Resources/Private/Language/locallang_module.xlf',
+ 'navigationComponentId' => '',
+ 'inheritNavigationComponentFromMainModule' => false
+ ]
+ );
+}