FluidTYPO3\Vhs\ViewHelpers\Variable\ExtensionConfigurationViewHelper::renderStatic PHP Метод

renderStatic() публичный статический Метод

public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
Результат mixed
    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);
    }
ExtensionConfigurationViewHelper