[FEATURE] Fluid based Module Template
[Packages/TYPO3.CMS.git] / typo3 / sysext / dbal / ext_tables.php
index 4f5438c..0594bcd 100644 (file)
@@ -1,9 +1,22 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die ('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
-       t3lib_extMgm::addModule('tools', 'txdbalM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+               'tools',
+               'txdbalM1',
+               '',
+               '',
+               array(
+                       'routeTarget' => \TYPO3\CMS\Dbal\Controller\ModuleController::class . '::mainAction',
+                       'access' => 'admin',
+                       'name' => 'tools_txdbalM1',
+                       'labels' => array(
+                               'tabs_images' => array(
+                                       'tab' => 'EXT:dbal/Resources/Public/Icons/module-dbal.svg',
+                               ),
+                               'll_ref' => 'LLL:EXT:dbal/Resources/Private/Language/locallang_mod.xlf',
+                       ),
+               )
+       );
 }
-?>
\ No newline at end of file