[TASK] Add unit test for fatal error on null object method call
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 \TYPO3\CMS\Form\Utility\FormUtility::getInstance()->initializeFormObjects()->initializePageTsConfig();
5
6 // Add a for previewing tt_content elements of CType="mailform"
7 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']['mailform'] = \TYPO3\CMS\Form\Hooks\PageLayoutView\MailformPreviewRenderer::class;
8
9
10 // Add the form CType to the "New Content Element" wizard
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
12 mod.wizards.newContentElement.wizardItems.forms {
13 elements.mailform {
14 icon = EXT:frontend/Resources/Public/Icons/ContentElementWizard/mailform.gif
15 title = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_title
16 description = LLL:EXT:backend/Resources/Private/Language/locallang_db_new_content_el.xlf:forms_mail_description
17 tt_content_defValues.CType = mailform
18 }
19 show :=addToList(mailform)
20 }
21 ');