-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ext_localconf.php
33 lines (27 loc) · 1.69 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
<?php
if (!isset($GLOBALS['TYPO3_CONF_VARS']['DB']['additionalQueryRestrictions'][\GeorgRinger\Gdpr\Database\Query\Restriction\GdprRestriction::class])) {
$GLOBALS['TYPO3_CONF_VARS']['DB']['additionalQueryRestrictions'][\GeorgRinger\Gdpr\Database\Query\Restriction\GdprRestriction::class] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Database\Query\QueryBuilder::class]['addAdditionalWhereConditions'][1521636341]
= \GeorgRinger\Gdpr\Hooks\QueryBuilderHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']['getButtonsHook']['gdpr'] =
\GeorgRinger\Gdpr\Hooks\ButtonBarHook::class . '->getButtons';
// overlay icon
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Imaging\IconFactory::class]['overrideIconOverlay'][] = \GeorgRinger\Gdpr\Hooks\IconFactoryHook::class;
$extConfiguration = \GeorgRinger\Gdpr\Domain\Model\Dto\ExtensionConfiguration::getInstance();
if ($extConfiguration->getOverloadMediaRenderer()) {
$rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(\GeorgRinger\Gdpr\Rendering\YoutubeWithConsentRenderer::class);
$rendererRegistry->registerRendererClass(\GeorgRinger\Gdpr\Rendering\VimeoWithConsentRenderer::class);
}
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$icons = [
'ext-gdpr-form-overview' => 'form-overview.svg',
];
foreach ($icons as $identifier => $path) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:gdpr/Resources/Public/Icons/' . $path]
);
}