Neos\Fusion\Core\Runtime::pushContextArray PHP Method

pushContextArray() public method

Purely internal method, should not be called outside of Neos.Fusion.
public pushContextArray ( array $contextArray ) : void
$contextArray array
return void
    public function pushContextArray(array $contextArray)
    {
        $this->renderingStack[] = $contextArray;
    }

Usage Example

 /**
  * 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;
 }
All Usage Examples Of Neos\Fusion\Core\Runtime::pushContextArray