public function addSubItem($name, $title, $options = [])
    {
        $options           = is_array($options) ? $options : ['url' => $options];
        $options['parent'] = $this;

        return $this->menu->addItem($name, $title, $options);
    }
public function addSubItem($name, $title, $options = [])
    {
        $options           = is_array($options) ? $options : ['url' => $options];
        $options['parent'] = $this;

        return $this->menu->addItem($name, $title, $options);
    }
public function addSubItem ( $ name , $ title , $ options = [ ] ) { $ options = is_array ( $ options ) ? $ options : [ 'url' => $ options ] ; $ options [ 'parent' ] = $ this ; return $ this -> menu -> addItem ( $ name , $ title , $ options ) ; }
Creates a sub Item

@param  string       $name
@param  string       $title
@param  string|array $options

@return Item
Creates a sub Item