\Charcoal\Ui\MenuItemMenuItemInterface

Defines a menu item.

Summary

Methods
Constants
setIdent()
ident()
setLabel()
label()
setUrl()
url()
hasUrl()
setChildren()
addChild()
children()
hasChildren()
numChildren()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

ident()

ident() : string

Returns

string

label()

label() : string

Returns

string

url()

url() : string

Returns

string

hasUrl()

hasUrl() : boolean

Returns

boolean

setChildren()

setChildren(array  $children) : \Charcoal\Ui\MenuItem\MenuItemInterface

Parameters

array $children

The menu item children menu structure.

Returns

\Charcoal\Ui\MenuItem\MenuItemInterface

Chainable

hasChildren()

hasChildren() : boolean

Returns

boolean

numChildren()

numChildren() : integer

Returns

integer