-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
41 lines (37 loc) · 1.43 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
39
40
41
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
call_user_func(static function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Socialservices',
'Socialservices',
[
\JWeiland\Socialservices\Controller\HelpdeskController::class => 'list, show, search',
],
// non-cacheable actions
[
\JWeiland\Socialservices\Controller\HelpdeskController::class => 'search',
]
);
// Register SVG Icon Identifier
$svgIcons = [
'ext-socialservices-wizard-icon' => 'Extension.svg',
];
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Core\Imaging\IconRegistry::class
);
foreach ($svgIcons as $identifier => $fileName) {
$iconRegistry->registerIcon(
$identifier,
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:socialservices/Resources/Public/Icons/' . $fileName]
);
}
// Add socialservices plugin to new element wizard
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:socialservices/Configuration/TSconfig/ContentElementWizard.tsconfig">'
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['socialservicesUpdateSlug']
= \JWeiland\Socialservices\Updater\Socialservices2SlugUpdater::class;
});