TYPO3  7.6
form/ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
4 if (TYPO3_MODE === 'BE') {
5  // Apply PageTSconfig
6  \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
7  '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">'
8  );
9 
10  // Backend view
11  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] =
12  \TYPO3\CMS\Form\Hooks\PageLayoutView\MailformPreviewRenderer::class;
13 } else {
14  // Handling of cObjects "FORM" and "FORM_INT"
15  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array(
16  'FORM',
17  \TYPO3\CMS\Form\Hooks\ContentObjectHook::class
18  );
19  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][] = array(
20  'FORM_INT',
21  \TYPO3\CMS\Form\Hooks\ContentObjectHook::class
22  );
23 
24  // Extbase handling
25  \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(
26  \TYPO3\CMS\Form\Domain\Property\TypeConverter\ArrayToValidationElementConverter::class
27  );
28 
29  \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
30  'TYPO3.CMS.Form',
31  'Form',
32  array('Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess'),
33  array('Frontend' => 'show, confirmation, dispatchConfirmationButtonClick, process, afterProcess')
34  );
35 
36  $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
37  $signalSlotDispatcher->connect(
38  \TYPO3\CMS\Form\Domain\Builder\FormBuilder::class,
39  'txFormHandleIncomingValues',
40  \TYPO3\CMS\Form\Hooks\HandleIncomingFormValues::class,
41  'handleIncomingFormValues'
42  );
43 }