[!!!][TASK] Rewrite backend modules of indexed_search
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
6 'tools',
7 'isearch',
8 'after:log',
9 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/'
10 );
11 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
12 'web_info',
13 \TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController::class,
14 NULL,
15 'LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search'
16 );
17 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
18 'web_info',
19 \TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::class,
20 NULL,
21 'LLL:EXT:indexed_search/locallang.xlf:mod2_indexed_search'
22 );
23
24 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
25 'TYPO3.CMS.IndexedSearch',
26 'web',
27 'isearch',
28 '',
29 array(
30 'Administration' => 'index,pages,externalDocuments,statistic,statisticDetails,deleteIndexedItem,saveStopwordsKeywords,wordDetail',
31 ),
32 array(
33 'access' => 'admin',
34 'icon' => 'EXT:indexed_search/Resources/Public/Icons/module-indexed_search.png',
35 'labels' => 'LLL:EXT:indexed_search/mod/locallang_mod.xlf',
36 )
37 );
38 }
39
40
41 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'IndexedSearch');
42
43 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('index_config');
44 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('index_config', 'EXT:indexed_search/locallang_csh_indexcfg.xlf');