src/Kunstmaan/NodeBundle/Helper/NodeMenu.php
public function getRootNodeMenuItem()
    {
        if (is_null($this->rootNodeMenuItem)) {
            $rootNode = $this->domainConfiguration->getRootNode();
            if (!is_null($rootNode)) {
                $nodeTranslation = $rootNode->getNodeTranslation(
                    $this->locale,
                    $this->includeOffline
                );
                $this->rootNodeMenuItem = new NodeMenuItem(
                    $rootNode,
                    $nodeTranslation,
                    false,
                    $this
                );
            } else {
                $this->rootNodeMenuItem = $this->breadCrumb[0];
            }
        }

        return $this->rootNodeMenuItem;
    }
public function getRootNodeMenuItem()
    {
        if (is_null($this->rootNodeMenuItem)) {
            $rootNode = $this->domainConfiguration->getRootNode();
            if (!is_null($rootNode)) {
                $nodeTranslation = $rootNode->getNodeTranslation(
                    $this->locale,
                    $this->includeOffline
                );
                $this->rootNodeMenuItem = new NodeMenuItem(
                    $rootNode,
                    $nodeTranslation,
                    false,
                    $this
                );
            } else {
                $this->rootNodeMenuItem = $this->breadCrumb[0];
            }
        }

        return $this->rootNodeMenuItem;
    }
public function getRootNodeMenuItem ( ) { if ( is_null ( $ this -> rootNodeMenuItem ) ) { $ rootNode = $ this -> domainConfiguration -> getRootNode ( ) ; if ( ! is_null ( $ rootNode ) ) { $ nodeTranslation = $ rootNode -> getNodeTranslation ( $ this -> locale , $ this -> includeOffline ) ; $ this -> rootNodeMenuItem = new NodeMenuItem ( $ rootNode , $ nodeTranslation , false , $ this ) ; } else { $ this -> rootNodeMenuItem = $ this -> breadCrumb [ 0 ] ; } } return $ this -> rootNodeMenuItem ; }
Returns the current root node menu item
Returns the current root node menu item