[BUGFIX] Improve accessibiity-check of index page in HMENU 'browse'
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // avoid that this block is loaded in the frontend or within the upgrade-wizards
5 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
6 /** Registers a Backend Module */
7 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
8 'TYPO3.CMS.Workspaces',
9 'web',
10 'workspaces',
11 'before:info',
12 array(
13 // An array holding the controller-action-combinations that are accessible
14 'Review' => 'index,fullIndex,singleIndex',
15 'Preview' => 'index,newPage'
16 ),
17 array(
18 'access' => 'user,group',
19 'icon' => 'EXT:workspaces/Resources/Public/Icons/module-workspaces.svg',
20 'labels' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_mod.xlf',
21 'navigationComponentId' => 'typo3-pagetree'
22 )
23 );
24
25 // register ExtDirect
26 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
27 'TYPO3.Workspaces.ExtDirect',
28 \TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer::class,
29 'web_WorkspacesWorkspaces',
30 'user,group'
31 );
32 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
33 'TYPO3.Workspaces.ExtDirectActions',
34 \TYPO3\CMS\Workspaces\ExtDirect\ActionHandler::class,
35 'web_WorkspacesWorkspaces',
36 'user,group'
37 );
38 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
39 'TYPO3.Workspaces.ExtDirectMassActions',
40 \TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler::class,
41 'web_WorkspacesWorkspaces',
42 'user,group'
43 );
44 }
45
46 // Registers preview link icon
47 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)->registerIcon(
48 'module-workspaces-action-preview-link',
49 \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
50 ['source' => 'EXT:workspaces/Resources/Public/Images/generate-ws-preview-link.png']
51 );
52 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');