UI\Menu::append

Append Menu Item

説明

public UI\MenuItem UI\Menu::append(string $name, string $type = UI\MenuItem::class)

Shall append a new Menu Item

パラメータ

name

The name (text) for the new item

type

The type for the new item

戻り値

A constructed object of the given type