Neos\Neos\Fusion\MenuImplementation::buildItems PHP Method

buildItems() protected method

Builds the array of menu items containing those items which match the configuration set for this Menu object.
protected buildItems ( ) : array
return array An array of menu items and further information
    protected function buildItems()
    {
        $items = array();
        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;
    }