-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathext_tables.php
More file actions
27 lines (25 loc) · 833 Bytes
/
Copy pathext_tables.php
File metadata and controls
27 lines (25 loc) · 833 Bytes
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
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
'IchHabRecht.hosts_pattern',
'tools',
'HostsPattern',
'',
[
'Domain' => 'index',
],
[
'access' => version_compare(TYPO3_version, '9', '>=') ? 'systemMaintainer' : 'admin',
'icon' => 'EXT:hosts_pattern/Resources/Public/Icons/module-hostspattern.svg',
'labels' => 'LLL:EXT:hosts_pattern/Resources/Private/Language/locallang_mod.xml',
]
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
'hosts_pattern',
'setup',
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:hosts_pattern/Configuration/TypoScript/setup.txt">'
);
}