-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathext_tables.php
More file actions
88 lines (80 loc) · 3.01 KB
/
ext_tables.php
File metadata and controls
88 lines (80 loc) · 3.01 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
// TODO: Remove the file when upgrading to v13 as we removing v11 support
use Localizationteam\Localizer\Controller\CartController;
use Localizationteam\Localizer\Controller\LocalizerController;
use Localizationteam\Localizer\Controller\SelectorController;
use Localizationteam\Localizer\Controller\SettingsController;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
if (!defined('TYPO3')) {
die('Access denied.');
}
/**
* Registers a Backend Module
*/
ExtensionManagementUtility::addModule(
'localizer',
'', // Submodule key
'', // Position
'',
[
'routeTarget' => LocalizerController::class . '::mainAction',
'access' => 'user,group',
'name' => 'localizer',
'icon' => 'EXT:localizer/Resources/Public/Icons/module-localizer.svg',
'labels' => 'LLL:EXT:localizer/Resources/Private/Language/locallang_localizer.xlf',
]
);
/**
* Registers a Backend Module
*/
ExtensionManagementUtility::addModule(
'localizer', // Make module a submodule of 'Localizer'
'localizerselector', // Submodule key
'', // Position
'',
[
'routeTarget' => SelectorController::class . '::mainAction',
'access' => 'user,group',
'name' => 'localizer_localizerselector',
'icon' => 'EXT:localizer/Resources/Public/Icons/module-localizer-selector.svg',
'labels' => 'LLL:EXT:localizer/Resources/Private/Language/locallang_localizer_selector.xlf',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
/**
* Registers a Backend Module
*/
ExtensionManagementUtility::addModule(
'localizer', // Make module a submodule of 'Localizer'
'localizercart', // Submodule key
'', // Position
'',
[
'routeTarget' => CartController::class . '::mainAction',
'access' => 'user,group',
'name' => 'localizer_localizercart',
'icon' => 'EXT:localizer/Resources/Public/Icons/module-localizer-cart.svg',
'labels' => 'LLL:EXT:localizer/Resources/Private/Language/locallang_localizer_cart.xlf',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
/**
* Registers a Backend Module
*/
ExtensionManagementUtility::addModule(
'localizer', // Make module a submodule of 'Localizer'
'localizersettings', // Submodule key
'', // Position
'',
[
'routeTarget' => SettingsController::class . '::mainAction',
'access' => 'user,group',
'name' => 'localizer_localizersettings',
'icon' => 'EXT:localizer/Resources/Public/Icons/module-localizer-settings.svg',
'labels' => 'LLL:EXT:localizer/Resources/Private/Language/locallang_localizer_settings.xlf',
'navigationComponentId' => 'TYPO3/CMS/Backend/PageTree/PageTreeElement',
]
);
ExtensionManagementUtility::allowTableOnStandardPages('tx_localizer_settings');
ExtensionManagementUtility::allowTableOnStandardPages('tx_localizer_cart');
ExtensionManagementUtility::allowTableOnStandardPages('tx_localizer_settings_l10n_exportdata_mm');