getRendered() public method

whether the template cache is deactivated. Navigation object is still cached boolean noCache = false whether the pathInfo is used in the cacheKey instead of the currentUrl. Useful when you have in your navigation controller calls that are based on pathInfo like pageStack->getCurrentUrlAffix() boolean pathInfoCache = false Example: getRendered(['noCache' => true]);
public getRendered ( array $options, Twig_Environment $twig ) : string
$options array
$twig Twig_Environment
return string
Example #1
0
 public function navigationLevel(\Twig_Environment $twig, $level, $view = 'JarvesBundle:Default:navigation.html.twig', array $options = [])
 {
     $options = array_merge($options, ['level' => $level, 'template' => $view]);
     return $this->navigation->getRendered($options, $twig);
 }