-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_tables.php
28 lines (26 loc) · 962 Bytes
/
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
<?php
defined('TYPO3_MODE') or die ('Access denied.');
$extconfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['prometheus']);
if ($extconfig['showAdministrationModule'] == true) {
call_user_func(
function ($extKey) {
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Mfc.prometheus',
'system',
'prometheus',
'',
[
'Backend\Prometheus' => 'getGrafanaContent'
],
[
'access' => 'user,group',
'icon' => 'EXT:' . $extKey . '/Resources/Public/Icon/Icon.svg',
'labels' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_mod.xml',
]
);
}
},
$_EXTKEY
);
}