‪TYPO3CMS  10.4
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 defined('TYPO3_MODE') or die();
4 
5 call_user_func(‪function () {
6  // Register upgrade wizard in install tool
7  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['formFileExtension']
8  = \TYPO3\CMS\Form\Hooks\FormFileExtensionUpdate::class;
9 
10  if (\‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('filelist')) {
11  // Context menu item handling for form files
12  ‪$GLOBALS['TYPO3_CONF_VARS']['BE']['ContextMenu']['ItemProviders'][1530637161]
13  = \TYPO3\CMS\Form\Hooks\FormFileProvider::class;
14 
15  // File list edit icons
16  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'][1530637161]
17  = \TYPO3\CMS\Form\Hooks\FileListEditIconsHook::class;
18  }
19 
20  if (\‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('impexp')) {
21  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/impexp/class.tx_impexp.php']['before_addSysFileRecord'][1530637161]
22  = \TYPO3\CMS\Form\Hooks\ImportExportHook::class . '->beforeAddSysFileRecordOnImport';
23  }
24 
25  // Hook to enrich tt_content form flex element with finisher settings and form list drop down
26  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing'][
27  \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class
28  ] = \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class;
29 
30  // Hook to count used forms elements in tt_content
31  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['formPersistenceIdentifier'] =
32  \TYPO3\CMS\Form\Hooks\SoftReferenceParserHook::class;
33 
34  // Register for hook to show preview of tt_content element of CType="form_formframework" in page module
35  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['form_formframework'] =
36  \TYPO3\CMS\Form\Hooks\FormPagePreviewRenderer::class;
37 
38  // Add new content element wizard entry
40  "@import 'EXT:form/Configuration/PageTS/modWizards.tsconfig'"
41  );
42 
43  // Add module configuration
45  'module.tx_form {
46  settings {
47  yamlConfigurations {
48  10 = EXT:form/Configuration/Yaml/FormSetup.yaml
49  }
50  }
51  view {
52  templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
53  partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
54  layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
55  }
56 }'
57  );
58 
59  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
60  = \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
61 
62  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeRendering'][1489772699]
63  = \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
64 
65  // FE file upload processing
66  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterBuildingFinished'][1489772699]
67  = \TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration::class;
68  ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterFormStateInitialized'][1613296803]
69  = \TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration::class;
70 
72  \‪TYPO3\CMS\Form\Mvc\Property\TypeConverter\FormDefinitionArrayConverter::class
73  );
74 
75  // Register "formvh:" namespace
76  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'TYPO3\\CMS\\Form\\ViewHelpers';
77 
78  // Register FE plugin
80  'Form',
81  'Formframework',
82  [\‪TYPO3\CMS\Form\Controller\FormFrontendController::class => 'render, perform'],
83  [\‪TYPO3\CMS\Form\Controller\FormFrontendController::class => 'perform'],
84  \‪TYPO3\CMS\‪Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
85  );
86 });
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addTypoScriptSetup
‪static addTypoScriptSetup($content)
Definition: ExtensionManagementUtility.php:1432
‪TYPO3
‪TYPO3\CMS\Backend\function
‪return function(ContainerConfigurator $container, ContainerBuilder $containerBuilder)
Definition: Services.php:10
‪TYPO3\CMS\Extbase\Utility\ExtensionUtility\registerTypeConverter
‪static registerTypeConverter($typeConverterClassName)
Definition: ExtensionUtility.php:399
‪TYPO3\CMS\Extbase\Utility\ExtensionUtility\configurePlugin
‪static configurePlugin($extensionName, $pluginName, array $controllerActions, array $nonCacheableControllerActions=[], $pluginType=self::PLUGIN_TYPE_PLUGIN)
Definition: ExtensionUtility.php:51
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addPageTSConfig
‪static addPageTSConfig($content)
Definition: ExtensionManagementUtility.php:985