TYPO3 v12: Access module configuration TypoScript in backend context menu

raw

ContextMenuProvider.php

1
2
3
4
5
6
7
8
9
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
 
$typoscript = GeneralUtility::makeInstance(ConfigurationManager::class)->getConfiguration(
    ConfigurationManager::CONFIGURATION_TYPE_FRAMEWORK, 'Myext'
);
 
$this->centerFolderUid = (int) $typoscript['settings']['centerFolderUid'];
 
Christian Weiske Christian Weiske
owner

History