Neos\Neos\View\TypoScriptView::getTypoScriptRuntime PHP Method

getTypoScriptRuntime() protected method

protected getTypoScriptRuntime ( Neos\ContentRepository\Domain\Model\NodeInterface $currentSiteNode ) : Runtime
$currentSiteNode Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\Fusion\Core\Runtime
    protected function getTypoScriptRuntime(NodeInterface $currentSiteNode)
    {
        if ($this->typoScriptRuntime === null) {
            $this->typoScriptRuntime = $this->typoScriptService->createRuntime($currentSiteNode, $this->controllerContext);
            if (isset($this->options['enableContentCache']) && $this->options['enableContentCache'] !== null) {
                $this->typoScriptRuntime->setEnableContentCache($this->options['enableContentCache']);
            }
        }
        return $this->typoScriptRuntime;
    }