public function pushContextArray(array $contextArray) { $this->renderingStack[] = $contextArray; }
/** * Evaluate a TypoScript path with a given context without content caching * * This is used to render uncached segments "out of band" in getCachedSegment of ContentCache. * * @param string $path * @param array $contextArray * @return mixed * * TODO Find another way of disabling the cache (especially to allow cached content inside uncached content) */ public function evaluateUncached($path, array $contextArray) { $previousEnableContentCache = $this->enableContentCache; $this->enableContentCache = false; $this->runtime->pushContextArray($contextArray); $result = $this->runtime->evaluate($path); $this->runtime->popContext(); $this->enableContentCache = $previousEnableContentCache; return $result; }