TYPO3 CMS  TYPO3_8-7
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 
26 // Registers preview link icon
27 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)->registerIcon(
28  'module-workspaces-action-preview-link',
29  \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
30  ['source' => 'EXT:workspaces/Resources/Public/Images/generate-ws-preview-link.png']
31 );
32 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');
static registerModule($extensionName, $mainModuleName='', $subModuleName='', $position='', array $controllerActions=[], array $moduleConfiguration=[])
static makeInstance($className,... $constructorArguments)