concrete/src/Application/Service/UserInterface/Menu.php
public function getPageHeaderMenuItems($position = false)
    {
        if ($position) {
            $tmpItems = array();
            foreach ($this->pageHeaderMenuItems as $mi) {
                if ($mi->getPosition() == $position) {
                    $tmpItems[] = $mi;
                }
            }

            return $tmpItems;
        } else {
            return $this->pageHeaderMenuItems;
        }
    }
public function getPageHeaderMenuItems($position = false)
    {
        if ($position) {
            $tmpItems = array();
            foreach ($this->pageHeaderMenuItems as $mi) {
                if ($mi->getPosition() == $position) {
                    $tmpItems[] = $mi;
                }
            }

            return $tmpItems;
        } else {
            return $this->pageHeaderMenuItems;
        }
    }
public function getPageHeaderMenuItems ( $ position = false ) { if ( $ position ) { $ tmpItems = array ( ) ; foreach ( $ this -> pageHeaderMenuItems as $ mi ) { if ( $ mi -> getPosition ( ) == $ position ) { $ tmpItems [ ] = $ mi ; } } return $ tmpItems ; } else { return $ this -> pageHeaderMenuItems ; } }
Returns current menu items.

@param bool $position

@return ItemInterface[]
Returns current menu items .