Skip to content

Instantly share code, notes, and snippets.

@garbast
Created July 6, 2016 12:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Getting typoscript in Backend
/**
* 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