-
Notifications
You must be signed in to change notification settings - Fork 15
/
ext_tables.php
executable file
·32 lines (28 loc) · 1.17 KB
/
ext_tables.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
<?php
defined('TYPO3') || die('Access denied.');
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
call_user_func(
function () {
$typo3VersionNumber = VersionNumberUtility::convertVersionNumberToInteger(
VersionNumberUtility::getNumericTypo3Version()
);
if ($typo3VersionNumber < 12000000) {
// If TYPO3 version is previous version 12. Can be removed when TYPO3 V10 and V11 support is dropped.
// @extensionScannerIgnoreLine
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'WeCookieConsent',
'web', // Make module a submodule of 'web'
'mod1', // Submodule key
'', // Position
[
\Websedit\WeCookieConsent\Controller\BackendController::class => 'gtmWizard, jsonDownload',
],
[
'access' => 'user,group',
'icon' => 'EXT:we_cookie_consent/Resources/Public/Icons/user_mod_mod1.svg',
'labels' => 'LLL:EXT:we_cookie_consent/Resources/Private/Language/locallang_mod1.xlf',
]
);
}
}
);