TYPO3 CMS  TYPO3_7-6
ext_tables.php
Go to the documentation of this file.
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)) {
8  'TYPO3.CMS.Workspaces',
9  'web',
10  'workspaces',
11  'before:info',
12  [
13  // An array holding the controller-action-combinations that are accessible
14  'Review' => 'index,fullIndex,singleIndex',
15  'Preview' => 'index,newPage'
16  ],
17  [
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
27  'TYPO3.Workspaces.ExtDirect',
28  \TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer::class,
29  'web_WorkspacesWorkspaces',
30  'user,group'
31  );
33  'TYPO3.Workspaces.ExtDirectActions',
34  \TYPO3\CMS\Workspaces\ExtDirect\ActionHandler::class,
35  'web_WorkspacesWorkspaces',
36  'user,group'
37  );
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');
if(!defined("DB_ERROR")) define("DB_ERROR"
static registerModule($extensionName, $mainModuleName='', $subModuleName='', $position='', array $controllerActions=[], array $moduleConfiguration=[])
static registerExtDirectComponent($endpointName, $callbackClass, $moduleName=null, $accessLevel=null)