FML/Script/Features/Menu.php
public function addItem(Control $item, Control $control, $isStartElement = false)
    {
        $menuElement = new MenuElement($item, $control);
        $this->addElement($menuElement, $isStartElement);
        return $this;
    }
public function addItem(Control $item, Control $control, $isStartElement = false)
    {
        $menuElement = new MenuElement($item, $control);
        $this->addElement($menuElement, $isStartElement);
        return $this;
    }
public function addItem ( Control $ item , Control $ control , $ isStartElement = false ) { $ menuElement = new MenuElement ( $ item , $ control ) ; $ this -> addElement ( $ menuElement , $ isStartElement ) ; return $ this ; }
Add a Menu item

@api
@param Control $item           Item Control in the Menu bar
@param Control $control        Toggled Menu Control
@param bool    $isStartElement (optional) Whether the Menu should start with this Element
@return static
Add a Menu item