-
Notifications
You must be signed in to change notification settings - Fork 16
/
ext_tables.php
57 lines (55 loc) · 1.75 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
46
47
48
49
50
51
52
53
54
55
56
57
<?php
// TODO: remove when TYPO3 11 compatibility is dropped
// First register a main module
use Cobweb\ExternalImport\Controller\DataModuleController;
use Cobweb\ExternalImport\Controller\LogModuleController;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
ExtensionUtility::registerModule(
'ExternalImport',
// New main module
'ExternalImport',
'',
'',
[],
[
'access' => 'user,group',
'icon' => 'EXT:external_import/Resources/Public/Icons/MainModuleIcon.svg',
'labels' => 'LLL:EXT:external_import/Resources/Private/Language/MainModule.xlf',
]
);
// Register the "Data Import" backend module
ExtensionUtility::registerModule(
'ExternalImport',
// Make it a submodule of 'ExternalImport'
'ExternalImport',
// Submodule key
'external_import',
// Position
'',
[
DataModuleController::class => 'listSynchronizable, listNonSynchronizable, synchronize, preview, downloadPreview, viewConfiguration, newTask, createTask, editTask, updateTask, deleteTask',
],
[
'access' => 'user,group',
'icon' => 'EXT:external_import/Resources/Public/Icons/DataModuleIcon.svg',
'labels' => 'LLL:EXT:external_import/Resources/Private/Language/DataModule.xlf',
]
);
// Register the "Log" backend module
ExtensionUtility::registerModule(
'ExternalImport',
// Make it a submodule of 'ExternalImport'
'ExternalImport',
// Submodule key
'external_import_log',
// Position
'',
[
LogModuleController::class => 'list, get',
],
[
'access' => 'user,group',
'icon' => 'EXT:external_import/Resources/Public/Icons/LogModuleIcon.svg',
'labels' => 'LLL:EXT:external_import/Resources/Private/Language/LogModule.xlf',
]
);