[TASK] Use simple syntax for labels in module registration
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
6 'web',
7 'list',
8 '',
9 '',
10 array(
11 'routeTarget' => \TYPO3\CMS\Recordlist\RecordList::class . '::mainAction',
12 'access' => 'user,group',
13 'name' => 'web_list',
14 'icon' => 'EXT:recordlist/Resources/Public/Icons/module-list.svg',
15 'labels' => 'LLL:EXT:lang/locallang_mod_web_list.xlf'
16 )
17 );
18
19 // register element browsers
20 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['db'] = \TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::class;
21 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
22 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['folder'] = \TYPO3\CMS\Recordlist\Browser\FolderBrowser::class;
23
24 // register default link handlers
25 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
26 TCEMAIN.linkHandler {
27 page {
28 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\PageLinkHandler
29 label = LLL:EXT:lang/locallang_browse_links.xlf:page
30 }
31 file {
32 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FileLinkHandler
33 label = LLL:EXT:lang/locallang_browse_links.xlf:file
34 displayAfter = page
35 scanAfter = page
36 }
37 folder {
38 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FolderLinkHandler
39 label = LLL:EXT:lang/locallang_browse_links.xlf:folder
40 displayAfter = file
41 scanAfter = file
42 }
43 url {
44 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\UrlLinkHandler
45 label = LLL:EXT:lang/locallang_browse_links.xlf:extUrl
46 displayAfter = folder
47 scanAfter = mail
48 }
49 mail {
50 handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\MailLinkHandler
51 label = LLL:EXT:lang/locallang_browse_links.xlf:email
52 displayAfter = url
53 }
54 }
55 ');
56 }