setIdent()
setIdent(string $ident) : \Charcoal\Ui\MenuItem\MenuItemInterface
Parameters
string | $ident | The menu item identifier. |
Returns
\Charcoal\Ui\MenuItem\MenuItemInterface —Chainable
Defines a menu item.
setIdent(string $ident) : \Charcoal\Ui\MenuItem\MenuItemInterface
string | $ident | The menu item identifier. |
Chainable
setLabel(string $label) : \Charcoal\Ui\MenuItem\MenuItemInterface
string | $label | The menu item label. |
Chainable
setUrl(string $url) : \Charcoal\Ui\MenuItem\MenuItemInterface
string | $url | The menu item URL. |
Chainable
setChildren(array $children) : \Charcoal\Ui\MenuItem\MenuItemInterface
array | $children | The menu item children menu structure. |
Chainable
addChild(array|\Charcoal\Ui\MenuItem\MenuItemInterface $child) : \Charcoal\Ui\MenuItem\MenuItemInterface
array|\Charcoal\Ui\MenuItem\MenuItemInterface | $child | The child object or structure. |
Chainable
children() : array<mixed,\Charcoal\Ui\MenuItem\MenuItemInterface>