[TASK] Change typo3.org links to https
[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 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Workspaces::setWorkspace', \TYPO3\CMS\Workspaces\Controller\AjaxController::class . '->setWorkspace');
46 }
47
48 // @todo move icons to Core sprite or keep them here and remove the todo note ;)
49 $icons = array(
50 'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
51 'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
52 'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/generate-ws-preview-link.png'
53 );
54 \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'workspaces');
55 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');