forked from tritum/form_element_linked_checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
35 lines (32 loc) · 1.24 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
defined('TYPO3_MODE') or die();
call_user_func(function () {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
module.tx_form {
settings {
yamlConfigurations {
1505042806 = EXT:form_element_linked_checkbox/Configuration/Yaml/FormSetup.yaml
}
}
}
'));
}
$typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version();
if ($typo3Version->getMajorVersion() === 10) {
// load additional YAML configuration to load translation files differently for T3 v10
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
module.tx_form {
settings {
yamlConfigurations {
1587917063 = EXT:form_element_linked_checkbox/Configuration/Yaml/FormSetupV10.yaml
}
}
}
'));
}
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['beforeRendering'][1571076908]
= \TRITUM\FormElementLinkedCheckbox\Hooks\FormElementLinkResolverHook::class;
});