-
Notifications
You must be signed in to change notification settings - Fork 4
/
ext_localconf.php
38 lines (34 loc) · 1.27 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
36
37
38
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function (string $extKey) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extKey,
'warningMessage',
[
\Pixelant\PxaCookieBar\Controller\CookieWarningController::class => 'warningMessage',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extKey,
'jsCookieWarningSettings',
[
\Pixelant\PxaCookieBar\Controller\CookieWarningController::class => 'getJsCookieWarningSettings',
]
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$extKey,
'closeCookieBar',
[
\Pixelant\PxaCookieBar\Controller\CookieWarningController::class => 'closeCookieBar'
]
);
if (TYPO3_MODE === 'FE') {
$hook = \Pixelant\PxaCookieBar\Hooks\ContentPostProcessor::class . '->process';
// @codingStandardsIgnoreStart
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-output']['pxa_cookie_bar'] = $hook;
// @codingStandardsIgnoreEnd
}
},
'PxaCookieBar'
);