Neos.Neos/Classes/Fusion/MenuItemsImplementation.php
protected function buildItems()
    {
        $items = [];

        if ($this->getItemCollection() !== null) {
            $menuLevelCollection = $this->getItemCollection();
        } else {
            $entryParentNode = $this->findMenuStartingPoint();
            if ($entryParentNode === null) {
                return $items;
            }
            $menuLevelCollection = $entryParentNode->getChildNodes($this->getFilter());
        }

        $items = $this->buildMenuLevelRecursive($menuLevelCollection);

        return $items;
    }
protected function buildItems()
    {
        $items = [];

        if ($this->getItemCollection() !== null) {
            $menuLevelCollection = $this->getItemCollection();
        } else {
            $entryParentNode = $this->findMenuStartingPoint();
            if ($entryParentNode === null) {
                return $items;
            }
            $menuLevelCollection = $entryParentNode->getChildNodes($this->getFilter());
        }

        $items = $this->buildMenuLevelRecursive($menuLevelCollection);

        return $items;
    }
protected function buildItems ( ) { $ items = [ ] ; if ( $ this -> getItemCollection ( ) !== null ) { $ menuLevelCollection = $ this -> getItemCollection ( ) ; } else { $ entryParentNode = $ this -> findMenuStartingPoint ( ) ; if ( $ entryParentNode === null ) { return $ items ; } $ menuLevelCollection = $ entryParentNode -> getChildNodes ( $ this -> getFilter ( ) ) ; } $ items = $ this -> buildMenuLevelRecursive ( $ menuLevelCollection ) ; return $ items ; }
Builds the array of menu items containing those items which match the
configuration set for this Menu object.

@throws FusionException
@return array An array of menu items and further information
Builds the array of menu items containing those items which match the configuration set for this Menu object .