-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathext_localconf.php
40 lines (35 loc) · 1.14 KB
/
ext_localconf.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
<?php
use Subugoe\Find\Controller\SearchController;
use TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider;
use TYPO3\CMS\Core\Imaging\IconRegistry;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
defined('TYPO3') || exit;
$autoexec = static function () {
ExtensionUtility::configurePlugin(
'Find',
'Find',
[
SearchController::class => 'index, detail, suggest',
],
[
SearchController::class => 'index, detail, suggest',
]
);
if (TYPO3_MODE === 'BE') {
/*
* Register icons
*/
/** @var IconRegistry $iconRegistry */
$iconRegistry = GeneralUtility::makeInstance(IconRegistry::class);
$iconRegistry->registerIcon(
'ext-find-ce-wizard',
FontawesomeIconProvider::class,
['name' => 'search']
);
}
ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:find/Configuration/TSconfig/ContentElementWizard.tsconfig">');
};
$autoexec();
unset($autoexec);