forked from pagemachine/searchable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_tables.php
36 lines (35 loc) · 1.13 KB
/
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
33
34
35
36
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '11', '>=')) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'Searchable',
'web',
'searchable',
'',
[
\PAGEmachine\Searchable\Controller\BackendController::class => 'start, search, request, resetIndices, indexFull, indexPartial',
],
[
'access' => 'user,group',
'icon' => 'EXT:searchable/ext_icon.svg',
'labels' => 'LLL:EXT:searchable/Resources/Private/Language/locallang_mod.xlf',
]
);
} else {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'PAGEmachine.Searchable',
'web',
'searchable',
'',
[
'Backend' => 'start, search, request, resetIndices, indexFull, indexPartial',
],
[
'access' => 'user,group',
'icon' => 'EXT:searchable/ext_icon.svg',
'labels' => 'LLL:EXT:searchable/Resources/Private/Language/locallang_mod.xlf',
]
);
}