get( ConfigurationManagerInterface::class ); $typoscript = $configurationManager->getConfiguration( ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT ); $typoscript = GeneralUtility::removeDotsFromTS($typoscript); $siteConfig = $typoscript['config']['site']; $current = &$siteConfig; foreach ($pathParts as $key) { $current = &$current[$key]; } if (is_array($current) && array_key_exists('value', $current) && count($current) === 1 ) { $current = $current['value']; } return $current; } }