/**
  * @param string $locale
  * @param Node   $node
  * @param bool   $includeHiddenFromNav
  *
  * @return NodeMenu
  */
 public function getNodeMenu($locale, Node $node = null, $includeHiddenFromNav = false)
 {
     $request = $this->requestStack->getMasterRequest();
     $isPreview = $request->attributes->has('preview') && $request->attributes->get('preview') === true;
     $this->nodeMenu->setLocale($locale);
     $this->nodeMenu->setCurrentNode($node);
     $this->nodeMenu->setIncludeOffline($isPreview);
     $this->nodeMenu->setIncludeHiddenFromNav($includeHiddenFromNav);
     return $this->nodeMenu;
 }
 /**
  * @return bool
  */
 public function getActive()
 {
     return $this->menu->getActive($this->getSlug());
 }