public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
$extensionKey = $arguments['extensionKey'];
$path = $arguments['path'];
if (null === $extensionKey) {
$extensionName = $renderingContext->getControllerContext()->getRequest()->getControllerExtensionName();
$extensionKey = GeneralUtility::camelCaseToLowerCaseUnderscored($extensionName);
}
if (!array_key_exists($extensionKey, $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'])) {
return null;
} elseif (!array_key_exists($extensionKey, static::$configurations)) {
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extensionKey]);
static::$configurations[$extensionKey] = GeneralUtility::removeDotsFromTS($extConf);
}
if (!$path) {
return static::$configurations[$extensionKey];
}
return ObjectAccess::getPropertyPath(static::$configurations[$extensionKey], $path);
}