-
Notifications
You must be signed in to change notification settings - Fork 20
/
ext_tables.php
29 lines (26 loc) · 1.31 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
<?php
defined('TYPO3_MODE') or die('Access denied.');
call_user_func(function (string $extension): void {
if (!\KoninklijkeCollective\MyRedirects\Utility\ConfigurationUtility::isDeprecated()) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'KoninklijkeCollective.' . $extension,
'web',
$extension,
'',
['Redirect' => 'list, delete, activate, lookup'],
[
// Additional configuration
'access' => 'user, group',
'icon' => 'EXT:' . $extension . '/Resources/Public/Icons/module-my_redirects.svg',
'iconIdentifier' => 'module-my_redirects',
'labels' => 'LLL:EXT:' . $extension . '/Resources/Private/Language/locallang_mod.xlf',
'navigationComponentId' => '',
]
);
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
\KoninklijkeCollective\MyRedirects\Domain\Model\Redirect::TABLE,
'EXT:' . $extension . '/Resources/Private/Language/locallang_csh.xlf'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages(\KoninklijkeCollective\MyRedirects\Domain\Model\Redirect::TABLE);
}, \KoninklijkeCollective\MyRedirects\Utility\ConfigurationUtility::EXTENSION);