-
Notifications
You must be signed in to change notification settings - Fork 27
/
ext_tables.php
34 lines (30 loc) · 1.01 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
<?php
defined('TYPO3_MODE') || die();
call_user_func(static function () {
TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'IchHabRecht.mask_export',
'tools',
'mask_export',
'after:MaskMask',
[
\IchHabRecht\MaskExport\Controller\ExportController::class => 'list, save, download, install',
],
[
'access' => 'admin',
'icon' => 'EXT:mask_export/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:mask_export/Resources/Private/Language/locallang_mod.xlf',
]
);
$maskElements = array_filter(
$GLOBALS['TCA']['tt_content']['types'] ?? [],
static function ($key) {
return strpos((string)$key, 'mask_') === 0;
},
ARRAY_FILTER_USE_KEY
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'TCEFORM.tt_content.CType.removeItems := addToList('
. implode(',', array_keys($maskElements))
. ')'
);
});