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