Neos\Neos\Aspects\TypoScriptCachingAspect::cacheGetMergedTypoScriptObjectTree PHP Метод

cacheGetMergedTypoScriptObjectTree() публичный Метод

public cacheGetMergedTypoScriptObjectTree ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Результат mixed
    public function cacheGetMergedTypoScriptObjectTree(JoinPointInterface $joinPoint)
    {
        $currentSiteNode = $joinPoint->getMethodArgument('startNode');
        $cacheIdentifier = str_replace('.', '_', $currentSiteNode->getContext()->getCurrentSite()->getSiteResourcesPackageKey());
        if ($this->typoScriptCache->has($cacheIdentifier)) {
            $typoScriptObjectTree = $this->typoScriptCache->get($cacheIdentifier);
        } else {
            $typoScriptObjectTree = $joinPoint->getAdviceChain()->proceed($joinPoint);
            $this->typoScriptCache->set($cacheIdentifier, $typoScriptObjectTree);
        }
        return $typoScriptObjectTree;
    }
TypoScriptCachingAspect