-
Notifications
You must be signed in to change notification settings - Fork 1
/
ext_localconf.php
32 lines (29 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
<?php
defined('TYPO3_MODE') or die();
call_user_func(function (string $extKey) {
if (TYPO3_MODE === 'BE') {
//Fetch ExtensionConfiguration
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\KamiYang\ProjectVersion\Configuration\ExtensionConfiguration::class
);
// Register custom icon
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
->registerIcon(
'information-project-version',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
[
'source' => 'EXT:project_version/Resources/Public/Icons/ToolbarItem.svg'
]
);
// Add project version to SystemInformation
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class
);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class,
'getSystemInformation',
\KamiYang\ProjectVersion\Backend\ToolbarItems\ProjectVersionSlot::class,
'getProjectVersion'
);
}
}, 'project_version');