forked from tpwd/ke_search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
45 lines (41 loc) · 1.94 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
37
38
39
40
41
42
43
44
45
<?php
defined('TYPO3') or die();
(function () {
// add help file
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'tx_kesearch_filters',
'EXT:ke_search/locallang_csh.xml'
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'KeSearch',
'web',
'backend_module',
'',
[
\Tpwd\KeSearch\Controller\BackendModuleController::class => 'startIndexing, indexedContent, indexTableInformation, searchwordStatistics, clearSearchIndex, lastIndexingReport, alert',
],
[
'access' => 'user,group',
'icon' => 'EXT:ke_search/Resources/Public/Icons/moduleicon.svg',
'labels' => 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xlf',
]
);
// add scheduler task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\Tpwd\KeSearch\Scheduler\IndexerTask::class]
= array(
'extension' => 'ke_search',
'title' => 'Indexing process for ke_search (DEPRECATED, please use "Execute console commands" --> "ke_search:indexing" instead)',
'description' => 'This task updates the ke_search index (DEPRECATED, please use "Execute console commands" --> "ke_search:indexing" instead)'
);
if ((new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion() === 10) {
// This icon registration can be deleted once compatibility with TYPO3 v10 is removed
// see also: Configuration/Icons.php for the new way
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'ext-kesearch-wizard-icon',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:ke_search/Resources/Public/Icons/moduleicon.svg']
);
}
})();