protected function getNodes(ReadBlockInterface $block)
    {
        $nodes = null;
        $nodeName = $block->getAttribute('nodeName');
        $siteId = $this->currentSiteManager->getSiteId();

        if (!is_null($nodeName)) {
            $nodes = $this->nodeRepository->getSubMenu($nodeName, $block->getAttribute('nbLevel'), $this->request->getLocale(), $siteId);
            $nodes = $this->getGrantedNodes($nodes);
        }

        return $nodes;
    }
protected function getNodes(ReadBlockInterface $block)
    {
        $nodes = null;
        $nodeName = $block->getAttribute('nodeName');
        $siteId = $this->currentSiteManager->getSiteId();

        if (!is_null($nodeName)) {
            $nodes = $this->nodeRepository->getSubMenu($nodeName, $block->getAttribute('nbLevel'), $this->request->getLocale(), $siteId);
            $nodes = $this->getGrantedNodes($nodes);
        }

        return $nodes;
    }
protected function getNodes ( ReadBlockInterface $ block ) { $ nodes = null ; $ nodeName = $ block -> getAttribute ( 'nodeName' ) ; $ siteId = $ this -> currentSiteManager -> getSiteId ( ) ; if ( ! is_null ( $ nodeName ) ) { $ nodes = $ this -> nodeRepository -> getSubMenu ( $ nodeName , $ block -> getAttribute ( 'nbLevel' ) , $ this -> request -> getLocale ( ) , $ siteId ) ; $ nodes = $ this -> getGrantedNodes ( $ nodes ) ; } return $ nodes ; }
Get nodes to display

@param ReadBlockInterface $block

@return array
Get nodes to display