[TASK] Make AbstractFinisher notice free
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 call_user_func(function () {
5 // Hook to enrich tt_content form flex element with finisher settings and form list drop down
6 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class]['flexParsing'][
7 \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class
8 ] = \TYPO3\CMS\Form\Hooks\DataStructureIdentifierHook::class;
9
10 // Hook to count used forms elements in tt_content
11 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['softRefParser']['formPersistenceIdentifier'] =
12 \TYPO3\CMS\Form\Hooks\SoftReferenceParserHook::class;
13
14 // Register for hook to show preview of tt_content element of CType="form_formframework" in page module
15 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['form_formframework'] =
16 \TYPO3\CMS\Form\Hooks\FormPagePreviewRenderer::class;
17
18 // Add new content element wizard entry
19 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
20 '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">'
21 );
22
23 // Add new content element wizard entry
24 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
25 '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">'
26 );
27
28 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
29 = \TYPO3\CMS\Form\Hooks\FormElementsOnSubmitHooks::class;
30
31 // FE file upload processing
32 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterBuildingFinished'][1489772699]
33 = \TYPO3\CMS\Form\Mvc\Property\PropertyMappingConfiguration::class;
34
35 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
36 \TYPO3\CMS\Form\Property\TypeConverter\FormDefinitionArrayConverter::class
37 );
38 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
39 \TYPO3\CMS\Form\Mvc\Property\TypeConverter\UploadedFileReferenceConverter::class
40 );
41
42 // Register "formvh:" namespace
43 $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['formvh'][] = 'TYPO3\\CMS\\Form\\ViewHelpers';
44
45 // Register FE plugin
46 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
47 'TYPO3.CMS.Form',
48 'Formframework',
49 ['FormFrontend' => 'render, perform'],
50 ['FormFrontend' => 'perform'],
51 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
52 );
53 });