‪TYPO3CMS  11.5
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
15 
16 defined('TYPO3') or die();
17 
18 call_user_func(static ‪function () {
19  if (ExtensionManagementUtility::isLoaded('filelist')) {
20  // Context menu item handling for form files
21  ‪$GLOBALS['TYPO3_CONF_VARS']['BE']['ContextMenu']['ItemProviders'][1530637161]
22  = FormFileProvider::class;
23  }
24 
25  if (ExtensionManagementUtility::isLoaded('impexp')) {
26  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/impexp/class.tx_impexp.php']['before_addSysFileRecord'][1530637161]
27  = ImportExportHook::class . '->beforeAddSysFileRecordOnImport';
28  }
29 
30  // Hook to enrich tt_content form flex element with finisher settings and form list drop down
31  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][FlexFormTools::class]['flexParsing'][
32  DataStructureIdentifierHook::class
33  ] = DataStructureIdentifierHook::class;
34 
35  // Add new content element wizard entry
36  ExtensionManagementUtility::addPageTSConfig(
37  "@import 'EXT:form/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
38  );
39 
40  // Add module configuration
41  ExtensionManagementUtility::addTypoScriptSetup(
42  'module.tx_form {
43  settings {
44  yamlConfigurations {
45  10 = EXT:form/Configuration/Yaml/FormSetup.yaml
46  }
47  }
48  view {
49  templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
50  partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
51  layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
52  }
53 }'
54  );
55 
56  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
57  = FormElementHooks::class;
58 
59  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeRendering'][1489772699]
60  = FormElementHooks::class;
61 
62  // FE file upload processing
63  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterBuildingFinished'][1489772699]
64  = PropertyMappingConfiguration::class;
65  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterFormStateInitialized'][1613296803]
66  = PropertyMappingConfiguration::class;
67 
68  ExtensionUtility::registerTypeConverter(
69  FormDefinitionArrayConverter::class
70  );
71 
72  // Register "formvh:" namespace
73  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'TYPO3\\CMS\\Form\\ViewHelpers';
74 
75  // Register FE plugin
76  ExtensionUtility::configurePlugin(
77  'Form',
78  'Formframework',
79  [FormFrontendController::class => 'render, perform'],
80  [FormFrontendController::class => 'perform'],
81  ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
82  );
83 });
‪TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration
Definition: PropertyMappingConfiguration.php:37
‪TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook
Definition: DataStructureIdentifierHook.php:46
‪TYPO3\CMS\Form\Hooks\FormElementHooks
Definition: FormElementHooks.php:30
‪TYPO3\CMS\Extbase\Utility\ExtensionUtility
Definition: ExtensionUtility.php:29
‪function
‪static return function(ContainerConfigurator $container, ContainerBuilder $containerBuilder)
Definition: Services.php:9
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Form\Controller\FormFrontendController
Definition: FormFrontendController.php:42
‪TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools
Definition: FlexFormTools.php:40
‪TYPO3\CMS\Form\Hooks\FormFileProvider
Definition: FormFileProvider.php:28
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Form\Mvc\Property\TypeConverter\FormDefinitionArrayConverter
Definition: FormDefinitionArrayConverter.php:37
‪TYPO3\CMS\Form\Hooks\ImportExportHook
Definition: ImportExportHook.php:25