setItems()
setItems(array $items) : \Charcoal\Ui\Menu\MenuInterface
Parameters
array | $items | The menu items. |
Returns
\Charcoal\Ui\Menu\MenuInterface —Chainable
Defines a menu.
setItems(array $items) : \Charcoal\Ui\Menu\MenuInterface
array | $items | The menu items. |
Chainable
addItem(array|\Charcoal\Ui\Menu\MenuItemInterface $item) : \Charcoal\Ui\Menu\MenuInterface
array|\Charcoal\Ui\Menu\MenuItemInterface | $item | A menu item structure or object. |
Chainable