Getting typoscript in Backend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Works with: | |
* | |
* module.tx_extensionname_pluginname < plugins.tx_extensionname_pluginname | |
* | |
* @return void | |
*/ | |
protected function initializeTypoScript() | |
{ | |
/** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */ | |
$objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager'); | |
/** @var \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager $configurationManager */ | |
$configurationManager = $objectManager->get( | |
'TYPO3\\CMS\\Extbase\\Configuration\\BackendConfigurationManager' | |
); | |
$configuration = $configurationManager->getConfiguration('ExtensionName', 'pluginame'); | |
$this->settings = $configuration['settings']; | |
$this->viewConfig = $configuration['view']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment