kitodo-presentation/ext_tables.php

35 lines
1.2 KiB
PHP

<?php
/**
* (c) Kitodo. Key to digital objects e.V. <contact@kitodo.org>
*
* This file is part of the Kitodo and TYPO3 projects.
*
* @license GNU General Public License version 3 or later.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*/
// Register backend module.
if (\TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
'tools',
'dlfNewTenantModule',
'',
'',
[
'routeTarget' => \Kitodo\Dlf\Module\NewTenant::class . '::main',
'access' => 'admin',
'name' => 'tools_dlfNewTenantModule',
'icon' => 'EXT:dlf/Resources/Public/Icons/Extension.svg',
'labels' => 'LLL:EXT:dlf/Resources/Private/Language/NewTenant.xml',
/**
* 'navigationComponentId' => 'typo3-pagetree' is marked deprecated
* in TYPO3 9. Use 'TYPO3/CMS/Backend/PageTree/PageTreeElement'
* instead. Keeping old setting for compatibility with TYPO3 8.7.
*/
'navigationComponentId' => 'typo3-pagetree'
]
);
}