[CLEANUP] Streamline Avatar-related code in EXT:backend
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Register as a skin
5 $GLOBALS['TBE_STYLES']['skins']['backend'] = [
6 'name' => 'backend',
7 'stylesheetDirectories' => [
8 'css' => 'EXT:backend/Resources/Public/Css/'
9 ]
10 ];
11
12 if (TYPO3_MODE === 'BE') {
13 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
14 'web',
15 'layout',
16 'top',
17 '',
18 [
19 'routeTarget' => \TYPO3\CMS\Backend\Controller\PageLayoutController::class . '::mainAction',
20 'access' => 'user,group',
21 'name' => 'web_layout',
22 'icon' => 'EXT:backend/Resources/Public/Icons/module-page.svg',
23 'labels' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf'
24 ]
25 );
26
27 // Register BackendLayoutDataProvider for PageTs
28 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['BackendLayoutDataProvider']['pagets'] = \TYPO3\CMS\Backend\Provider\PageTsBackendLayoutDataProvider::class;
29 }