-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
32 lines (28 loc) · 992 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
29
30
31
32
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extensionKey) {
$extensionName = 'Gone';
$controllerName = \Leuchtfeuer\Gone\Controller\BackendController::class;
// Use deprecated names for TYPO3 v9
if (version_compare(TYPO3_version, '10.0.0', '<')) {
$extensionName = 'Leuchtfeuer.Gone';
$controllerName = 'Login';
}
// Backend Module
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
$extensionName,
'site',
'gone',
'bottom',
[
$controllerName => 'list, delete'
],
[
'access' => 'user,group',
'icon' => sprintf('EXT:%s/Resources/Public/Icons/Extension.svg', $extensionKey),
'labels' => sprintf('LLL:EXT:%s/Resources/Private/Language/locallang_mod.xlf', $extensionKey)
]
);
}, 'gone'
);