[TASK] Fixed links to issues in Changelog
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_localconf.php
1 <?php
2
3 defined('TYPO3') or die();
4
5 call_user_func(function () {
6 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('filelist')) {
7 // Context menu item handling for form files
8 $GLOBALS['TYPO3_CONF_VARS']['BE']['ContextMenu']['ItemProviders'][1530637161]
9 = \TYPO3\CMS\Form\Hooks\FormFileProvider::class;
10
11 // File list edit icons
12 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'][1530637161]
13 = \TYPO3\CMS\Form\Hooks\FileListEditIconsHook::class;
14 }
15
16 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('impexp')) {
17 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/impexp/class.tx_impexp.php']['before_addSysFileRecord'][1530637161]
18 = \TYPO3\CMS\Form\Hooks\ImportExportHook::class . '->beforeAddSysFileRecordOnImport';
19 }
20
21 // Hook to enrich tt_content form flex element with finisher settings and form list drop down
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing'][
23 \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class
24 ] = \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class;
25
26 // Hook to count used forms elements in tt_content
27 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['formPersistenceIdentifier'] =
28 \TYPO3\CMS\Form\Hooks\SoftReferenceParserHook::class;
29
30 // Add new content element wizard entry
31 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
32 "@import 'EXT:form/Configuration/TsConfig/Page/Mod/Wizards/NewContentElement.tsconfig'"
33 );
34
35 // Add module configuration
36 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
37 'module.tx_form {
38 settings {
39 yamlConfigurations {
40 10 = EXT:form/Configuration/Yaml/FormSetup.yaml
41 }
42 }
43 view {
44 templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
45 partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
46 layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
47 }
48 }'
49 );
50
51 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
52 = \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
53
54 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeRendering'][1489772699]
55 = \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
56
57 // FE file upload processing
58 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterBuildingFinished'][1489772699]
59 = \TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration::class;
60 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterFormStateInitialized'][1613296803]
61 = \TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration::class;
62
63 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
64 \TYPO3\CMS\Form\Mvc\Property\TypeConverter\FormDefinitionArrayConverter::class
65 );
66
67 // Register "formvh:" namespace
68 $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'TYPO3\\CMS\\Form\\ViewHelpers';
69
70 // Register FE plugin
71 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
72 'Form',
73 'Formframework',
74 [\TYPO3\CMS\Form\Controller\FormFrontendController::class => 'render, perform'],
75 [\TYPO3\CMS\Form\Controller\FormFrontendController::class => 'perform'],
76 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
77 );
78 });